I'm a new IM user, and have a specific situation I can't seem to understand or resolve, despite doing my best to follow the instructions at:
http://www.imagemagick.org/Usage/window ... guidelines
I want to identify the width, height, and DPI for approximately 6,000 images in various directories, and write them out to individual text files. If it is any easier, writing them out to a single output file would be acceptable, so long as the file names are included in the output (they are all uniquely named).
These images are not the only images in those directories, and I do not want information from any other images in those directories. I'm pulling the file names of the images that I need out of a SQL database, and attempting to generating the appropriate IM commands from there.
If I take just one of the IM commands that I've generated out of SQL and paste it into the command prompt, I get the expected results, in the expected output file:
Code: Select all
identify -format "%d %f %w %h %x %y" "W:\SOURCEDIR\Image1.tif" > "C:\ImageSizes\Image1.txt"
Code: Select all
W:\SOURCEDIR Image1.tif 7200 5029 200 200
Code: Select all
identify -format "%d %f %w %h %x %y" "W:\SOURCEDIR\Image1.tif" > "C:\ImageSizes\Image1.txt"
identify -format "%d %f %w %h %x %y" "W:\SOURCEDIR2\Image2.tif" > "C:\ImageSizes\Image2.txt"
Code: Select all
f h y
Thank you!
TJ