by Robin Rowe 11/10/05
DOS Batch File
convert.bat:
FOR %%F IN (*.*) DO gm convert -quality 90 "%%F" "convert/%%F.jpg"
Test File Integrity (from Bob Friesenhahn)
- Extended the GM 1.2 development version a bit so a command like "gm identify +ping filename" can be used to force reading the entire file. This is a good way to test for errors. Normally only the file header is read if possible. (This feature is not in 1.1.7.)
Example:
% gm identify +ping grace-tongue-out.jpg grace-tongue-out.jpg JPEG 7400x7560+0+0 DirectClass 8-bit 17.3m 8.460u 0:09 (6.3m pixels/s)