problems while resample image / image resolution = 0

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
cyklop
Posts: 7
Joined: 2010-06-10T22:20:58-07:00
Authentication code: 8675308

problems while resample image / image resolution = 0

Post by cyklop »

Hi folks,

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 );
server is hanging while resampleImage function. This is the output of $arrImageInfo:

Code: Select all

array(2) {
  ["resolution"]=>
  array(2) {
    ["x"]=>
    float(0)
    ["y"]=>
    float(0)
  }
  ["resolutionUnit"]=>
  int(0)
}
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!
Post Reply