Why can't I crop then resize with v6.0.7 ?

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
Bopeep

Why can't I crop then resize with v6.0.7 ?

Post by Bopeep »

Running this php exec command w/ ImageMagick v6.0.7 :

convert -crop "400x300+600+300" +repage -resize "200" "../IMAGES/source.jpg" "./destination"

Not getting an image. I get an image with either crop or resize by itself, but not both. Appreciate any help.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Why can't I crop then resize with v6.0.7 ?

Post by Bonzo »

You need to read the image in first, I would move the +repage to the end and you shouldn't need quotation marks around the crop and resize:

Code: Select all

convert "../IMAGES/source.jpg" -crop 400x300+600+300 +repage -resize 200  "./destination"
Bopeep

Re: Why can't I crop then resize with v6.0.7 ?

Post by Bopeep »

That worked. Thanks a bunch.
Post Reply