Form for ImageMagick on VPS in PHP script?

Category: How To

drom95
Asked:
2013-04-04 5:11 pm EST

Hits: 669
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.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

Arn
Staff
16,272 Points
2013-04-04 5:55 pm EST
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

You must login before you can post a comment about this answer.

Hi Arnel C,

Unfortunately, no, I followed the examples and it's still not working. I then took your advice and contacted technical support. They told me they "don't provide coding support."

Looks like there's still no answer on this.

Thanks so much and regards,
Chris
Current VPS Subscriber
drom95
17 Points
2013-04-05 10:27 am EST
ok after further trial and error it is clear ImageMagick can work it was just not working for our files which are pdf's. For anyone else's future reference ImageMagick requires GhostScript (or something else) to convert a pdf file. Your server may have IM but not GS and you need to get it installed.
drom95
17 Points
2013-04-10 9:10 am EST
Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!