PHP/MariaDB/MySQL

What is the Path to ImageMagick?

Updated November 2026 11,302 views 2 min read
PHP/MySQL | Updated November 2026

ImageMagick is installed on all Ultra Web Hosting servers and is available for image processing from PHP scripts, Perl, and command-line tools.

01. Common ImageMagick Paths

  • convert: /usr/bin/convert
  • identify: /usr/bin/identify
  • composite: /usr/bin/composite
  • mogrify: /usr/bin/mogrify
  • ImageMagick directory: /usr/bin

02. Using ImageMagick in PHP

PHP's Imagick extension provides a native interface to ImageMagick without needing to call the command-line tools. This is the recommended approach:

<?php
$image = new Imagick('input.jpg');
$image->resizeImage(800, 600, Imagick::FILTER_LANCZOS, 1);
$image->writeImage('output.jpg');
?>

The Imagick extension is available on our servers. You can verify it is loaded by checking phpinfo() for the "imagick" section, or by running php -m | grep imagick via SSH.

For all server paths including PHP, Perl, Python, and other tools, see Server Paths - PHP, Perl, Python and More.

Need a Specific Module?

If you need a server module or library installed, see How to Request a Server Module Installation.

Open a Support Ticket

Frequently Asked Questions

Is ImageMagick available on UWH hosting?

Yes. ImageMagick is installed on all our servers and available to PHP scripts, Perl, and command-line tools for image processing such as resizing, converting, and thumbnails.

What is the path to ImageMagick?

The convert and related binaries are in the standard system path, typically /usr/bin/convert (and /usr/bin/identify, /usr/bin/mogrify). You can confirm the exact path from an SSH shell with which convert.

How do I use ImageMagick from PHP?

Use the Imagick PHP extension if it is enabled for your PHP version (check under Select PHP Version in cPanel), or call the convert binary via a shell function where allowed. Imagick is the cleaner option since direct shell execution is restricted on shared hosting.

How do I find the exact ImageMagick path myself?

From an SSH shell run which convert or whereis convert to print the exact location on your server. This is the most reliable way to get the path for a script or application configuration.

Quick Recap

  1. ImageMagick path: /usr/bin/convert
  2. Directory: /usr/bin
  3. PHP Imagick extension is available for native PHP integration
  4. All tools in /usr/bin - convert, identify, composite, mogrify
  5. See Server Paths article for other binary locations

Server tool paths · Last updated November 2026 · Browse all PHP/MySQL articles

Share: X in Reddit f Email
  • 622 Users Found This Useful

Was this answer helpful?

Related Articles

Disable MySQL strict mode on cPanel server

Databases | Updated January 2026 MySQL/MariaDB strict mode enforces stricter data validation...

Useful CSV to MySQL Script

PHP/MySQL | Updated January 2026 Importing CSV data into a MySQL/MariaDB database is a common...

Clean - Shrink ibdata1

PHP/MySQL | Updated November 2026 The ibdata1 file is the InnoDB system tablespace used by...

Cannot Connect to MySQL on Port 3306

PHP/MariaDB/MySQL | Updated November 2026 If you're getting connection errors when trying to...

Server Paths - PHP Perl Python and More

PHP/MariaDB/MySQL | Updated November 2026 The default path to PHP on Ultra Web Hosting...



Save 30% on web hosting - Use coupon code Hosting30