Page 1 of 1

I have a problem with rotating and cropping gif images

Posted: 2018-03-12T02:31:33-07:00
by bkstorm
I have an image:
Image
I want to rotate the image through 60 degrees then crop it.
Here is my command:

Code: Select all

convert bird.gif -coalesce -rotate 60 -crop 575x575+0+0! bird-crop.gif
With IM 6.7.2-7, it works just like what I want.
Version: ImageMagick 6.7.2-7 2017-03-22 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
Image

With IM 6.7.8-9, it doesn't work. I don't know how to fix this problem. Help me please!
Version: ImageMagick 6.7.8-9 2017-09-20 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
Image

Re: I have a problem with rotating and cropping gif images

Posted: 2018-03-12T03:08:11-07:00
by snibgo
Your versions of IM are very old. I suggest you upgrade.

You need "+repage" after the rotate. I suggest you also insert "-background none" before the rotate, and "+repage" after the crop.

Re: I have a problem with rotating and cropping gif images

Posted: 2018-03-18T21:15:33-07:00
by bkstorm
Thank you, it works. I will upgrade ImageMagick.