PHP Imagick::getImageResolution() returns [0, 0] (array with 2 c zeros) -


i'm using imagick on windows 7 xampp server. after while, able install imagick extension.

now, i'm running code:

<?php     $image = new imagick(realpath($path));     $imageresolution = $image->getimageresolution();     var_dump($imageresolution); ?> 

result is:

array (size=2)     'x' => float 0     'y' => float 0 

doesn't matter image use. got same result.

i tried using: getimagegeometry() , did real result it's not need. extension @ least partially working.

could windows problem? ideas?

not images have resolution set. resolution "dots per inch" image meant printed at. if wasn't set when image saved, won't there.

did mean imagick::getimagewidth , imagick::getimageheight ?


Comments