crop option changed between 6.4.0 and 6.4.1

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
koick

crop option changed between 6.4.0 and 6.4.1

Post 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!
koick

Re: crop option changed between 6.4.0 and 6.4.1

Post by koick »

Anyone have any ideas?
koick

Re: crop option changed between 6.4.0 and 6.4.1

Post 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...
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: crop option changed between 6.4.0 and 6.4.1

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
koick

Re: crop option changed between 6.4.0 and 6.4.1

Post by koick »

Thanks for the explanation!
Post Reply