Form for ImageMagick on VPS in PHP script?

  • Answered
There is a help page giving 3 examples to call ImageMagick. One is for VPS from the command line, the second is for a shared server from the command line, and the third is for a shared server within a PHP script. However, there is no example for a VPS server within a PHP script. And wouldn't you know, I tried just modifying the shared example by taking out the /usr/bin/ (analogous to the first VPS example) but couldn't get it to work. Does the exec() command work on VPS? Or can someone just give an example how to call an ImageMagick function like convert in a PHP script on a VPS server? Thank you in advance for any help.
Hello Drom95, We're sorry to hear of the problems you're having with using ImageMagick. I reviewed your account and checked to see if Imagemagick is loaded. It's definitely there and you should be able to use it in a PHP script. It should be the same script line as what you were seeing in the article. The path would also be the same. If you're removing it, then that might be part of the problem. If you try the script again, and it's not working with the appropriate path, we need to see what you're doing so that we can attempt to troubleshoot the issue. Referenced article: ImageMagick your server If you have any further questions, please contact technical support available 24 hours a day / 7 days a week. Regards, Arnel C. Community Support