Imagick 6.5.5-4 pho cropThumbnailImage change of behavior

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
dobermann

Imagick 6.5.5-4 pho cropThumbnailImage change of behavior

Post by dobermann »

Hi,

I just upgraded my PHP/Imagick installation to PHP 5.2.10 and ImageMagick 6.5.5-4 from 5.2.9/6.5.0-9

Imagick::cropThumbnailImage($w, $h) method behavior has changed. Before, it always returned a $w x $h image. But now, for landscape format images, it's just like a resize($w, $h), the generated image has a $h height, but a lower than $w width.

To reproduce :
$im = new Imagick('image.jpg');
$im->cropThumbnailImage(516, 279);
$im->getImageBlob();

Expected result :
a 516x279 image

Current result :
same as $im->resizeImage(516, 279);

Regards
Julien
Post Reply