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 8690293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:52:19+00:00 2026-06-12T23:52:19+00:00

First of all, I used ImageMagick in combination with the Imagick PHP5 extension for

  • 0

First of all, I used ImageMagick in combination with the Imagick PHP5 extension for a while with no issues at all, untill I accidentally removed GhostScript. Since then I’m trying to get it back working again to no avail.

After reinstalling everything, ImageMagick is able to convert PDF to JPEG. However I can’t find gs in the DELEGATE list when I run convert -list configure. Still when I run convert sample.pdf[1] sample.jpg it works perfectly. However, when I reinstalled the php5-imagick extension through sudo apt-get install php5-imagick it throws an error when I try to convert PDF to images.

Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image formatupload/guide.pdf’ @ error/constitute.c/ReadImage/533.`

It was thrown by the following code:

<?php
//header("Content-type: image/jpeg"); 
$img = new imagick("upload/guide.pdf[1]"); 
$img->setImageFormat("jpg");
echo $img; 
?>

I can’t see where the problem is, as ImageMagick itself is just working fine I suppose it’s Imagick that doesn’t interact with ImageMagick well.

  • 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-12T23:52:20+00:00Added an answer on June 12, 2026 at 11:52 pm

    I fixed the problem by not installing Imagick through the Ubuntu repository. When I ran sudo apt-get autoremove php5-imagick and tried to install it through pecl, it threw an error and said that Imagick was already installed (which was weird, because I uninstalled it and restarted apache).

    So I uninstalled it through sudo pecl uninstall imagick and then reinstalled it using sudo pecl install imagick and then added extension=imagick.so to php.ini, and restarted apache again. Now everything works again. Hopefully this will help someone having the same problem.

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

Sidebar

Related Questions

First of all, I would like to say that I have used the search
First of all, I've used function_exists to check, if my function was previously declared
First of all, I've never really used APIs before, and I've never used the
First of all, some links to pages I've used for reference: A SO question
First of all, I have used ALL of the suggested methods in this SO
First of all I'm not asking if NOLOCK should or should not be used.
When my team first started out with SVN we all just used our first
when i built my first all html/css website i used clickable images as a
First of all, please take a look at how IModel is used in this
So, first of all, this used to work perfectly, up until about a week

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.