O'Reilly logo

ImageMagick Tricks by Sohail Salehi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to Create an Animation

As I mentioned before, the animate utility just shows animated files. So the best way of creating animation files is the convert utility. The easiest manner of making an animation with convert is to join the still images in a directory (which have the same format) and save them as an animated format like .gif, .mpg, .m2v, or .mnv.

convert *.jpg animated.mpg

This command places all the .jpg files in the current directory (in alphabetical order) as frames of an animated .mpg file. If you play the .mpg file, the frames will show rapidly and the animation will loop from the start. Using the above command, the dimensions of the animated .mpg file that is created is based on the first image page size and all the other .jpg ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required