Using ImageMagick

For Linux Web Hosting packages, 1&1 IONOS Performance Hosting and Managed Dedicated Server

ImageMagick is a collection of applications for creating, editing and converting image files. In Web Hosting packages and on 1&1 IONOS Managed Servers ImageMagick is available is available pre-installed as the convert command under /usr/bin/convert. Use the convert command to convert, scale, blur, crop images and much more. You can access convert via scripts or via a direct shell command.

Usage Examples

Simple conversion of a JPG file into a PNG file:

convert example.jpg example.png

Convert an image file and reduce the size for the target PNG file by 50%:

convert example.jpg -resize 50% example.png

Convert and set the resolution of the target PNG file to 480x95 pixels:

convert -size 480x95 example.jpg example.png