From LQWiki
Jump to navigation Jump to search

This article deals with the command convert. For an overview about what you can convert and how, please see conVersIOn.

Convert is the graphics file format converter from the ImageMagick package. It allows for converting between graphic file formats and to do image manipulation on an image.

Format conversion


convert whatever.tif whatever.jpg

Converts the file whatever.tif to jpeg format and stores it as whatever.jpg.

convert *.jpg whatever.pdf

Converts the files *.jpg into a single PDF. However, this may yield large files while:

convert *.jpg -compress jpeg -quality 100 whatever.pdf

usually proves more satisfactory.

Image manipulation


convert test.jpg -resize 1024x768 test2.jpg

See also