Page 1 of 1

Imagick 6.5.5-4 pho cropThumbnailImage change of behavior

Posted: 2009-09-04T14:07:47-07:00
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