: 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
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?
More posts by @Phylliss782
2 Comments
Sorted by latest first Latest Oldest Best
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.
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.