Mobile app version of vmapp.org
Login or Join
Phylliss782

: How to automatically document the image dimensions of a huge list of different sized images? I have over 1000 images to process and it would make life easier if I could obtain the dimensions

@Phylliss782

Posted in: #Automation #BatchProcessing #Images #Measurement #MultipleSizes

I have over 1000 images to process and it would make life easier if I could obtain the dimensions of the each image in a spreadsheet or document.

I was hoping for a program or something where I could drag and drop the images to the program and it automatically created a CSV (Comma Separated Values list) of dimensions.

How can I automatically generate a list of image dimensions from a folder with over 1000 images in it?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Phylliss782

2 Comments

Sorted by latest first Latest Oldest Best

 

@Heady304

You didn't specify which platform you're on, but I know it's quite easy on Ubuntu using the package 'libimage-exiftool-perl'

sudo apt-get install libimage-exiftool-perl


For example, to extract height & width from JPG files only in a particular folder and export the results to csv, you could run:

exiftool -csv -ext jpg -ImageWidth -ImageHeight /MyFolder > output.csv


It's a very powerful tool that can do much more than this, more info HERE.

EDIT: There are Windows and OSX builds available on the page link above as well, I haven't used them.

10% popularity Vote Up Vote Down


 

@Steve758

I think it can be solved with easy via simple php script:
1. You upload all images to a folder on server


Use scandir for get array of urls (http://us1.php.net/manual/en/function.scandir.php)
Do a iterative foreach for your array with urls (http://us1.php.net/manual/en/control-structures.foreach.php)
Get image sizes of each with getimagesize (http://www.php.net/manual/ru/function.getimagesize.php)
Format as you like and output to your HTML page.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme