Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8894101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:24:42+00:00 2026-06-14T23:24:42+00:00

I built a pdf generator script for one of my clients and everything works

  • 0

I built a pdf generator script for one of my clients and everything works properly. He then decided that he wanted me to create a thumbnail image from the PDF to display on another page, so I came across PHMagick and that seemed to do the trick.

The following code worked on my building server (iPage — I think it’s debian?), but now that I’ve moved it to his VPS, it is no longer working. FPDF has no trouble generating the pdf, so it is not a permissions issue.

Code:

require("phmagick/phmagick.php");
$pdf->Output("pdf.pdf");

$p = new phmagick('','pdf.png');
$p->debug = true;
$p->resize(800);

$p->acquireFrame("pdf.pdf");

This code returns the following error:

Error executing “convert “pdf.pdf”[0] “pdf.png””
return code: 127
command output :”sh: convert: command not found”

I have not changed any of the code since I moved it from the original server, and I just copied the entire site over, so why is PHMagick not working now? How do I get it to recognize convert.php in the plugins folder?

Just a note: I am only using PHMagick, not the whole of ImageMagick.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:24:43+00:00Added an answer on June 14, 2026 at 11:24 pm

    PHMagic appears to be using the command line convert command in background.

    Most likely that command is simply not installed on the server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a MS Access 2007 application that can create reports files in
I need to build a PDF based on FDF. I saw that Adobe has
I built a website and then deploy it on the server. But when i
Ive built a little jquery sliding div on my website that when you hover
I built a linear layout inside of a dialog , the problem here that
I have a project that can be built via makefile, and I would like
G'day guys, trying to build a small invoicing system (that can generate PDF's using
I have built a web application that can be seen as an overcomplicated application
I have an app that is built from Flash CS5.5, exported using AIR3.1 and
I'm trying to generate some pdf with django/PIL/Imaging and everything is good until I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.