Jump to content

Archived

This topic is now archived and is closed to further replies.

farkewie

Fatal error: Class 'Imagick' not found

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\"/>";

}

?>

Share this post


Link to post
Share on other sites
im pretty sure my host has imagick

 

Obviously not. You best ask your host where on your PATH the Imagick class would be found.

Share this post


Link to post
Share on other sites

They are saying it is installed and path is /usr/bin/  ?

 

they then told me to refer to the php manual.. thats where i got my test code from...lol

Share this post


Link to post
Share on other sites

/usr/bin would be where imagick (the binary) itself is installed. However, your looking to use the Imagick php class. Here are the install instructions.

Share this post


Link to post
Share on other sites

I had a look at that and i have no idea how to install it

do i need server access? i think i can get ssh access but i wouldnt know how to use it.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

×
×
  • 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.