[magick-users] Cropping a list of images
Anthony Thyssen
anthony at griffith.edu.au
Tue Aug 5 20:04:20 PDT 2008
Damien Dunlop on wrote...
| If you want to crop a list of images A, B, C,...
| and save each of the cropped images as their cropped
| version, how is this achieved within the one convert command?
|
Convert will rename the resulting images to the name you give.
While you can specify a 'scene' number for the output files (with a
+adjoin option)...
http://www.imagemagick.org/Usage/files/#write_seq
You can not, yet, specify the original basename, filename or path for
the resulting image.
However... mogrify will write the images either to
the same file
the same name with a different simage format and suffix (-format)
or a different directory path (-path)
See
http://www.imagemagick.org/Usage/basics/#mogrify
For example, crop images and save back to same location
mogrify -gravity center -crop 100x100+0+0 +repage \
A.jpg B.jpg C.jpg
DANGER DANGER, use mogrify with caution as it overwrites original
images.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
To seek out strange, new Taglines to BOLDLY quote ...
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list