crop question

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
liizii
Posts: 7
Joined: 2011-07-12T06:34:00-07:00
Authentication code: 8675308

crop question

Post by liizii »

i have a image a.png, the size is 1109 x 847.
and i crop it to a new image: convert a.png -crop 847x847+97+0 b.png, the b.png size is 847 x 847
now i crop b.png to a new image again: convert b.png -crop 200x200+50+50 c.png

now the image c.png size is 153 x 200,

why?

why c.png size is not 200 x 200, but 153 x 200.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: crop question

Post by Bonzo »

Try adding a +repage ( comment by fmw42 on another thread ):

Code: Select all

convert a.png -crop 847x847+97+0 +repage b.png
convert b.png -crop 200x200+50+50 +repage c.png
liizii
Posts: 7
Joined: 2011-07-12T06:34:00-07:00
Authentication code: 8675308

Re: crop question

Post by liizii »

fixed
thanks.
Post Reply