How to use Image Magick on GoDaddy Hosting

Apparently you can not use the built-in PHP Image Magick package, and can not the Imagick class to process images. The only method that apparently works, at least on legacy/classic GoDaddy Linux hosting accounts it to call Image Magick from the command line.

To do this, you simply use the PHP exec function and select one of the Image Magick commands available:

<?php exec('/usr/local/bin/convert source_image.jpg -thumbnail 120x120 output_image.jpg'); ?>

GoDaddy lists the various paths used to access the Image Magick executables, which vary depending on your hosting account type. Old accounts that you have had for 5 or more years will most likely be on the Classic hosting, where the newer accounts are hosted on cPanel servers.

Still Need Help?

If you are still having trouble setting this up, as PHP developers, we can do the heavy lifting for you.