Page 1 of 1

Animated GIF resizing problem

Posted: 2015-09-05T06:07:59-07:00
by yezimeng_115
My animated GIF seems not converted correctly, any idea? Thanks.
ImageMagick 6.8.6-6 on Mac
convert -resize 200x200\> 1.gif 2.gif
source:
Image
result:
Image

Re: Animated GIF resizing problem

Posted: 2015-09-05T06:23:54-07:00
by snibgo
It works fine for me, IM v6.9.1-6.

Your command is in the wrong order. You should read the input, then process, then write the output.

GIFs are often optimized, and need to be de-optimized first. So this would be a better command:

Code: Select all

convert 20rlmk6.jpg.gif -layers coalesce -resize 200x200^> -layers optimize out.gif

Re: Animated GIF resizing problem

Posted: 2015-09-05T06:49:29-07:00
by yezimeng_115
Thanks a lot, it works except -layers optimize

convert 1.gif -layers coalesce -resize 200x200^> -layers optimize 2.gif
convert: unable to open image `optimize': No such file or directory @ error/blob.c/OpenBlob/2643.
convert: no decode delegate for this image format `optimize' @ error/constitute.c/ReadImage/552.

Re: Animated GIF resizing problem

Posted: 2015-09-05T06:54:43-07:00
by yezimeng_115
This one works! Thanks!
convert 1.gif -layers coalesce -resize 200x200\> -layers optimize 2.gif

Re: Animated GIF resizing problem

Posted: 2015-09-05T07:46:49-07:00
by snibgo
snibgo wrote:-resize 200x200^>
The caret ^ is Windows escape. I forgot you were using bash, so needed backslash \. Sorry.