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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Herve661

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

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 »

User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

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

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

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

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

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