Page 1 of 1

crop option changed between 6.4.0 and 6.4.1

Posted: 2008-06-05T21:31:20-07:00
by koick
The following command worked with version 6.4.0 but not 6.4.1 (this is on Mac OS X, installed via Macports):

Code: Select all

mogrify -rotate 90 -crop 855x690+50+15! -type TrueColorMatte -transparent "#EFEFEF" -depth 8 orig.png
The original image (orig.png):
Image

--------------------------
Original image processed with version: ImageMagick 6.4.0 04/04/08 Q16 (this is expected behavior):
Image

--------------------------
Original image processed with version: ImageMagick 6.4.1 06/05/08 Q16 (Hm, something changed):
Image

Thanks for any help!

Re: crop option changed between 6.4.0 and 6.4.1

Posted: 2008-06-16T22:59:18-07:00
by koick
Anyone have any ideas?

Re: crop option changed between 6.4.0 and 6.4.1

Posted: 2008-06-17T17:46:22-07:00
by koick
For the record, I switched the order of crop and rotate:

Code: Select all

mogrify -crop 690x855+15+50! -rotate 90 -type TrueColorMatte -transparent "#EFEFEF" -depth 8 orig.png
Just wish I knew why it changed...

Re: crop option changed between 6.4.0 and 6.4.1

Posted: 2008-06-17T18:02:33-07:00
by anthony
The order of operations in "mogrify" is not defined as it is use a older IM v5 legacy command line handling, that 'saves up' the operations to be applied.

You are better off using "covert", which like "mogify" can save back to the original image file. It just can only handle one image at a time.

Code: Select all

convert orig.png -crop 690x855+15+50! -rotate 90 -transparent "#EFEFEF" -depth 8 orig.png
Convert will always try to do all commands in the order given!

For more information on this legacy program see. IM examples
Basics.
http://imagemagick.org/Usage/basics/#why
and
http://imagemagick.org/Usage/basics/#legacy

Re: crop option changed between 6.4.0 and 6.4.1

Posted: 2008-06-17T18:12:57-07:00
by koick
Thanks for the explanation!