Jump to content

Need advise with Imagick


rain13
 Share

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?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...