I ran into trouble while resampling this https://rapidshare.com/files/1943993516/H1145_ST10.zip image with following code:
Code: Select all
$im = new Imagick("H1145_ST10.jpg" );
$arrImageInfo['resolution'] = $im->getImageResolution();
$arrImageInfo['resolutionUnit'] = $im->getImageUnits();
$im->resampleImage(300, 300, imagick::FILTER_CATROM, 1 );
Code: Select all
array(2) {
["resolution"]=>
array(2) {
["x"]=>
float(0)
["y"]=>
float(0)
}
["resolutionUnit"]=>
int(0)
}
I also tried latest stable version of Imagick!