Fiding the size of a .JPG image.

So, I have this folder full of .JPG images and I need a listing of FILENAME.JPG/Vertical Pixels/Horizontal Pixels. The order doesn’t have to be exactly that but is there some way to find out the pixel size of the .JPG files in a directory? I could select each one an look at the properties for it but have more than a thousand files to go through and I figured there must be a better way to do it. If there is any way to do it in a batch mode it would make this so much easier.

Some looking in Google shows a couple people who have programmatical solutions but I’m a complete hack (heh) in real programming and can pretty much just get by with my AutoLISP and FoxPro skills which are no help for the VB and C# solutions I saw.

Any help would be greatly appreciated.

Thanks,
Rob

This is a little out of my league, but would Image Magick be of help? It seems to be a command-line tool that can identify image properties among other things.

Windows Explorer does this in Win7 and I think in XP too. Change the view to details.

you’ll see the filename image type (jpeg) and the resolution. The bytes use in the file is also displayed. You’ll get a list like this for every image file in the folder.

you can capture the information from Explorer with a program like SnagIt. SnagIt has a free thirty day trial period.

correction

You have to search the folder for *.jpg. Then Explorer lists the resolution (800x600).

I just tried it. For some reason, Explorer (Win7) wouldn’t list the image resolution under details. But, searching for *.jpg works great. I’ll have to try it on my laptop (XP) and see if it does the same.

I just got it working with XP.

right click on the image folder, and click search. search for *.jpg
click view, details

then under View…
at the bottom you’ll see Choose Details - click the box that says dimensions. (you only have to do this once. It remembers this setting)

you’ll see filename size date dimensions

capture the screen with snagit. it’s a free 30 eval software.

I’m not sure why Explorer doesn’t let you “Choose Details”. <shrug> That option is only offered after you Search.

Win7 is much, much easier to get this listing. :wink:

Well, I just learned a Win7 trick. On the toolbar, the button for view has a feature called content.

Content lists the images dimensions. :wink: First time I noticed that and I’ve been on Win 7 three months.

the toolbar, view button has…
Small Icons
List
Details
Tiles
Content

I had never noticed Content before tonight. I will be using it in the future. :wink:

Thanks aceplace57, that’ll be easier than opening each jpg. I usually have Details selected in Explorer but never saw the Size category before.

Does anyone know how to get the detail data from an Explorer window into a spreadsheet (Excel)?

Thanks,
Rob

In XP you can right click on the header section and select the details you want to see. If you want one that isn’t showing (like Dimensions wasn’t for me) you can select More… and it will bring up a window with all the options.

There may be a way to do this directly from windows. Otherwise…

Snagit has a Text mode capture. Excel’s import wizard will guide you through opening the text file, specifying the column width, the type of data etc.

Explorers columns are very wide. Text mode capture should get the text error free. I sometimes get errors capturing sentences in paragraphs. Everything is close together and it confuses the capture. Minor editing in Notepad takes care of any errors.

Thanks! I’m comfortable working with text files and importing them into Excel, I was having trouble getting the info from Explorer. I’ll have to check out Snagit.
Thanks again,
Rob