Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a set of images for an animation, but not all of the dimensions are the same. Some may be 100x100, others might be 99x105, a few with 110x100, and so on.

If I did a simple

convert *.png myAni.gif

And the first image happened to be a bit smaller in dimension compared to the largest image, the result may be "cut off" because the dimensions of the canvas is not large enough.

How can I either

  1. Set the canvas size for the animation, or more preferably,
  2. Have imagemagick find the largest width and height of the input set and use that as the canvas size?

The way I am doing it is to supply the first image as my "canvas" image, which would be created with a suitable width/height, and then I do a coalesce and delete 0 like this

convert canvas.png 001.png 002.png ... 009.png -coalesce -delete 0 myAnim.gif
share|improve this question

Unless I'm missing something, I don't see any reason you couldn't use this:

share|improve this answer
Obviously they don’t want to resize the images (and by extension, lose some quality). – Synetech Nov 18 '13 at 0:56
The content of the image is correct: if you manually resized the canvases and did some positioning it would produce the expected animation. There are actually two problems I'm dealing with (canvas size, and frame positioning), so I figured I might tackle the canvas size since it's easier of the two. – MxyL Nov 18 '13 at 19:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.