Page 1 of 1

Resizing an animated gif causes frames to gain background

Posted: 2013-12-24T23:04:04-07:00
by abxccd
I am trying to resize this animated GIF: Image

First I run coalesce:

Code: Select all

convert beaver.gif -coalesce temporary.gif
This results in: Image

Then I resize:

Code: Select all

convert -size 80x168 temporary.gif -resize 40x40 smaller.gif
Which results in: Image

In step 2, when we do the coalescing, the animation is damaged as the frames now gain a background. Why does this happen? How can this be prevented?

Re: Resizing an animated gif causes frames to gain backgroun

Posted: 2013-12-25T00:20:08-07:00
by fmw42
set your background to none (transparent)

convert xZ27hT5.gif -background none -resize 40x40 new_animation.gif

Re: Resizing an animated gif causes frames to gain backgroun

Posted: 2013-12-25T01:23:00-07:00
by abxccd
Is there anyway to do this when using coalesce as well?

I tried the following, but the problem still exists.

Code: Select all

convert beaver.gif -coalesce -background none temporary.gif
convert -size 80x168 temporary.gif -resize 40x40  -background none smaller.gif

Re: Resizing an animated gif causes frames to gain backgroun

Posted: 2013-12-25T11:08:33-07:00
by fmw42
Why do you need the coalesce if it works without it? Nevertheless, this works for me on IM 6.8.7.10 Q16 Mac OSX


convert xZ27hT5.gif -background none -coalesce -resize 40x40 tmp.gif