Using ImageMagick
Learn how to use ImageMagick, a complete suite of command-line programs that are used to manipulate image files in Linux.
This article discusses how to use ImageMagick. ImageMagick is a complete suite of command-line programs for manipulating image files.
Using ImageMagick
ImageMagick is installed on all hosting.com shared servers, and includes the following programs:
-
convert
-
identify
-
mogrify
-
composite
-
montage
-
compare
-
stream
-
conjure
The full path to the ImageMagick binaries is /usr/bin or /usr/local/bin, depending on your server. On some servers, however, ImageMagick is installed in both locations. To determine which version is the most recent, you can type the following commands:
/usr/bin/convert -version
/usr/local/bin/convert -version
Note
There is also an ImageMagick PHP extension that you can use to manipulate image files within PHP. For information about how to enable PHP extensions in cPanel, please see this article.
More Information
-
For more information about ImageMagick, please visit http://www.imagemagick.org.
-
For more information about the ImageMagick PHP extension, please visit https://www.php.net/manual/en/book.imagick.php.
Updated 3 days ago