problems while resample image / image resolution = 0
Posted: 2012-10-22T01:00:08-07:00
Hi folks,
I ran into trouble while resampling this https://rapidshare.com/files/1943993516/H1145_ST10.zip image with following code:
server is hanging while resampleImage function. This is the output of $arrImageInfo:
I also tried convert command on shell, which is also failing. I'm runing the newest version of Imagemagick (ImageMagick 6.8.0-2 2012-10-22 Q16) and Imagick (3.1.0RC2).
I also tried latest stable version of Imagick!
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!