I’m having an issue using the getImageCompression() method from Imagick. When I use it I receive an error (haven’t found any problem with any of the other methods so far):
$img = new imagick('/path/to/jpeg');
$img->getImageCompose(); // some value
$img->getImageCompression(); // Call to undefined method Imagick::getImageCompression()
$img->getImageCompressionQuality(); // some value
I’m running PHP 5.3.10 with php5-imagick 3.1.0 (I know it’s in beta, but getImageCompression() was released in 2.2.2) and ImageMagick 6.6.9-7.
Am I missing something or is the getImageCompression() method effectively missing (if so, is there an alternative for retrieving the image compression)?
I can’t find this method, neither in 2.2.2 nor in 3.1.0RC2
Setters are present (
setImageCompression()) ; other getters you quoted are present too.Seems like the manual is lying.