Page 1 of 1

Have you guys changed the behavior of "-crop"?

Posted: 2009-04-07T11:57:14-07:00
by Herve661
I've recently upgraded image magick to version 6.3.7

Noe that previously

Code: Select all

convert -resize '200x200>' -crop 100%x50% in.jpg out.jpg
would create just one file (out.jpg), now it creates 2 files, out-0.jpg and out-1.jpg.

To create just one file, use

Code: Select all

convert -resize '200x200>' -crop 100%x50%+0+0 in.jpg out.jpg

Re: Have you guys changed the behavior of "-crop"?

Posted: 2009-04-07T12:10:27-07:00
by fmw42

Re: Have you guys changed the behavior of "-crop"?

Posted: 2009-04-07T21:27:05-07:00
by anthony
It sounds like you upgraded from ImageMagick version 5!!! Congratulations!

The crop change was sorted out in the early days of IM v6 along with the 'do-it-in-order' handling
of command line options that has made IM v6 so much more powerful than IM v5

For details see IM Examples, Cutting and Bordering, Crop
http://www.imagemagick.org/Usage/crop/

it will cover all the details and special features of the crop command.

Re: Have you guys changed the behavior of "-crop"?

Posted: 2009-04-09T01:31:55-07:00
by Herve661
Than you! I'm mainly following Ubuntu LTS here...
Your program is really great and used to resize hundreds of scans every night on our websites...

Re: Have you guys changed the behavior of "-crop"?

Posted: 2009-04-09T23:42:15-07:00
by anthony
That is good. Maybe you would like to start a discussion topic giving a summery of what you do with the scans. Perhaps people here can not only learn from your experience, but they may be able to help improve your results as well. :D