
The following command applies the “Implode” effect with a strength of 1: convert howtogeek.jpg -implode 1 howtogeek-imploded.jpg We’ve used the same file name here, so ImageMagick will overwrite the original file. The following command asks ImageMagick to resize an image to 200 pixels in width and 100 pixels in height: convert example.png -resize 200x100 example.png The convert command can also quickly resize an image. ImageMagick uses the quality level of the input image, if possible. You can also specify a compression level for JPEG images: convert howtogeek.png -quality 95 howtogeek.jpg The following command takes a PNG file named “howtogeek.png” in the current directory and creates a JPEG image from it: convert howtogeek.png howtogeek.jpg One of the most basic things you can do with it is converting images between formats.

The convert command takes an image, performs actions on it, and saves the image with the file name you specify. To install it on Ubuntu, use the following command: sudo apt-get install imagemagick Converting Between Formats ImageMagick isn’t included in the default installations of Ubuntu and many other Linux distributions.
