next up previous contents
Next: mogrify: convert multiple images Up: ImageMagick: convert/edit images Previous: ImageMagick: convert/edit images   Contents

convert: convert between file formats

To convert between two image formats:
convert file.fmt1 file.fmt2
where fmt1 and fmt2 are respectively the source and destination file formats.

For example, to convert from a .gif to a .jpg file:

convert dollar.gif dollar.jpg

You may use convert to change the size of an image, or rotate the image. To use the dollar.gif example, and create a .rgb version, but upside down (rotated 180 degrees):

convert -rotate 180 dollar.gif dollar.jpg

There are well over 100 file formats understood by convert (and ImageMagick.

Claude Cantin 2010-10-24