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?".
abxccd
Posts: 4 Joined: 2012-04-10T21:53:29-07:00
Authentication code: 8675308
Post
by abxccd » 2013-12-24T23:04:04-07:00
I am trying to resize this animated GIF:
First I run coalesce:
Code: Select all
convert beaver.gif -coalesce temporary.gif
This results in:
Then I resize:
Code: Select all
convert -size 80x168 temporary.gif -resize 40x40 smaller.gif
Which results in:
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?
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2013-12-25T00:20:08-07:00
set your background to none (transparent)
convert xZ27hT5.gif -background none -resize 40x40 new_animation.gif
abxccd
Posts: 4 Joined: 2012-04-10T21:53:29-07:00
Authentication code: 8675308
Post
by abxccd » 2013-12-25T01:23:00-07:00
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
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2013-12-25T11:08:33-07:00
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