rain13 Posted November 12, 2017 Share Posted November 12, 2017 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 More sharing options...
Ingolme Posted November 12, 2017 Share Posted November 12, 2017 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 "->::" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now