profileimage() not work

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
curtis
Posts: 1
Joined: 2014-04-04T23:47:21-07:00
Authentication code: 6789

profileimage() not work

Post by curtis »

I just traced the error from php and seems the function "profileimage" is not available. Is it already deprecated ? Thanks in advance.

Code: Select all

$photo = new Imagick("123.jpg");
$photo->stripImage ();
//echo $photo->getImageColorspace();
//$icc_cmyk = file_get_contents('USWebUncoated.icc');
//$photo->setImageProfile('icc', $icc_cmyk);
$icc_rgb = file_get_contents('sRGB_v4_ICC_preference.icc');
$photo->profileImage('icc', $icc_rgb);
//$photo->setImageProfile('icc', $icc_rgb);
$photo->stripImage ();
//$photo->setImageColorspace(Imagick::COLORSPACE_SRGB);
$photo->writeImage("123gb.jpg");
echo "<br/>";
echo $photo->getImageColorspace();
$photo->destroy();
Post Reply