//location of image: c:/htdocs/rose.jpg
$path="c:/htdocs/";
$image=new Imagick($path."rose.jpg");
$array=$image->getImageResolution();
print_r($array);
result:
Array
(
[x]=>75
[y]=>75
)
Imagick::getImageResolution
(PECL imagick 2.0.0)
Imagick::getImageResolution — Gets the image X and Y resolution
Description
array Imagick::getImageResolution
( void
)
Warning
This function is currently not documented; only its argument list is available.
Gets the image X and Y resolution.
Return Values
Returns the resolution as an array. Throw an ImagickException on error.
Errors/Exceptions
Throws ImagickException on error.
Imagick::getImageResolution
perching_eagle at yahoo dot com
05-Oct-2007 01:14
05-Oct-2007 01:14
