Jump to content

Fatal error: Class 'Imagick' not found


farkewie

Recommended Posts

 

Fatal error: Class 'Imagick' not found in /home/.../public_html/.../albums/Birthday - Ty/test.php on line 3

 

 

im pretty sure my host has imagick how do i define the path?

 

 


<?php

$images = new Imagick(glob('*.JPG'));

foreach($images as $image) {

  // Providing 0 forces resizeImage to maintain aspect ratio
  $image->resizeImage(1024,0);

}

$images->writeImages();

while ($images){

print "<img scr=\"$images\"/>";

}

?>

Link to comment
Share on other sites

here is my chat session with support @ bluehost.com

 

Bill [01:50]: Welcome to our real-time support chat. How can I help you today?

Before I can make changes to your account or give you information about the account, I need you to provide me with your main domain name and the last four digits of the credit card (or PayPal invoice if you paid with PayPal) or the cPanel password on the account as verification.

Ty [01:50]: Hello i am trying to use php imagick class and getting fatal error class not defiend i spoke with someone last night they advised it is installed?

Bill [01:51]: yes imagick is installed at /usr/bin/

Ty [01:51]: so do i need to configure anything to use it?

[01:52]: im not using a gallery im writing my own small single page script

Bill [01:53]: just the correct path

Ty [01:53]: so i just have to set the path in the php script ? do you have an example?

Bill [01:54]: sorry I don't

Ty [01:56]: ok ill keep trying to work it out.

Link to comment
Share on other sites

  • 10 months later...

bump this - I'm having a similar problem. not sure how to include or install or load or compile or whatever else you want to call it, imagick. my server has the pecl, imagick, package "installed" but some step is missing, which the support couldn't help me on. I get the error message

'Imagick' class not found
as well. anyone know how to fill in the blanks?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.