|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-27 14:54 UTC] adrianbjones at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 12:00:01 2025 UTC |
Description: ------------ I just upgraded to the SVN to be able to use the new Imagick::setColorspace() method, but I still get this error: Call to undefined method Imagick::setColorspace() when I attempt: $im->setColorspace(Imagick::COLORSPACE_RGB); Thanks, Adrian Reproduce code: --------------- $im = new imagick(); $im->setOption("pdf:use-cropbox","true"); $im->setColorspace(Imagick::COLORSPACE_RGB); $im->setResolution($resolution,$resolution); $im->readImage($pdf_filepath); $im->setImageFormat("jpg"); $im->scaleImage($width, $height); $im->writeImage($jpg_filepath); header("Content-type: image/jpeg"); echo $im; Expected result: ---------------- Set the colorspace before reading the image Actual result: -------------- This error and no image produced Call to undefined method Imagick::setColorspace()