Fortunately, ImageMagick has an identify command to print out information about one or more images. The following shows how to use identify to print out the image file names and dimensions.
- Open up a Command Prompt.
- At the prompt, type in the command e.g.
C:\> identify -ping -format "%i,%w,%h\n" *.jpg
Note: the ping option will prevent the loading of the entire file.
The format string has place holders for the properties to be printed.
%i is for the image filename
%w is for the image width
%h is for the image height
And optionally some delimters such as commas between the properties and terminated with a new line character '\n'.
For more information about the string format placeholders, visit http://www.imagemagick.org/script/escape.php
- Press RETURN to run the command.
The information is printed to the screen.
- If you want to print the information to a file, type in the following command.
C:\> identify -ping -format "%i,%w,%h\n" > output.csv
- The resultant file can be displayed and further manipulated in a spreadsheet as shown below.