gif -resize... Help please!

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
Khabibulin

gif -resize... Help please!

Post by Khabibulin »

Forgive for my English!
In general a problem such.
I change size GIF of animation, for example with 100x100 on 70x70 a method "-resize".
I.e.
convert 1.gif -resize 70x70> 2.gif
Such result turns out here:
The original:
Image
After processing:
Image
Here it is possible to see loops which are not necessary.
A question: how to get rid of these loops?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: gif -resize... Help please!

Post by fmw42 »

I believe you need to use -coalesce

see

http://www.imagemagick.org/Usage/anim_mods/#resize
Khabibulin

Re: gif -resize... Help please!

Post by Khabibulin »

fmw42 wrote:I believe you need to use -coalesce

see

http://www.imagemagick.org/Usage/anim_mods/#resize
Thanks! Has helped! :wink:
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: gif -resize... Help please!

Post by anthony »

You may need to go though the optimization process for colors. http://imagemagick.org/Usage/anim_opt/

One summery for a video to GIF conversion is in the video section http://imagemagick.org/Usage/video/

Basically resizing images will generate a LOT of new colors, and GIF animations are not known for good color handling.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply