resizing animations (different sized frames)

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
Posts: 265
Joined: 2005-03-08T22:16:37-07:00

resizing animations (different sized frames)

Post by dognose »


I've been tottally messing up animations that have different frame sizes.

When I resize, I'm using:
mogrify -resize 100x100\! image.gif

However, some frames are only partial, and I really want it just to scale the whole image, not to resize each frame. Is there an easy way to do this with out having to calculate and resize each frame individually? is there a way to normalize the frames so that they are all the same size (ie. padding them out or something) so that this and other operations would work?

(I'm also messing up animations when some of the frames have offsets, because I'll tear apart the animation, and I can't reconstruct it properly)
User avatar
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Post by glennrp »


Code: Select all

mogrify -coalesce -resize 100x100 -deconstruct file.gif
You might need to use convert instead of mogrify

Code: Select all

convert in.gif -coalesce -resize 100x100 -deconstruct out.gif
Post Reply