Jump to content
Sign in to follow this  
rain13

Need advise with Imagick

Recommended Posts

Hi!

I want to use Imagick to resize images. I have one problem. Script finishes immediately despite of fact that original file is about 10 MB which should take some time to process. An other thing is that no errors or warnings are printed. So  for debugging purposes I printed version number but it also didnt show anything.

 

<?php
error_reporting(E_ALL);
print(imagick::getVersion());
$im = new Imagick();
print($im->::getVersion());
$im->readImage( "./uploads/0YZSQJErNxtcb2Dc.jpg" );
$im->resizeImage(1008, 756,Imagick::FILTER_LANCZOS,1);
$im->writeImage('./uploads/small.jpg');
$im->destroy();

?>

Any ideas what could possibly be wrong?

Share this post


Link to post
Share on other sites

Most likely a syntax error is causing nothing to be displayed. Both of your print statements have an error. The first did not capitalize "Imagick", the second one has "->::"

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...