trouble with getimageresolution and getimagegeometry
Posted: 2007-09-12T21:31:31-07:00
So far most imagick functions work for me. I seem to be having problems with the functions that return arrays.
$im = new Imagick();
$filename = 'junk.jpg';
$im -> readImage($filename);
$photobytes = $im ->getImageSize();
$photoheight = $im ->getImageHeight();
$photowidth = $im ->getImageWidth();
// the above functions work and return values that I expect
//the functions below do not return any values
$geometry = $im->getImageGeometry();
$geomX = $geometry[0];
$geomY = $geometry[1];
$resolution = $im->getImageResolution();
$resX = $resolution[0];
$resY = $resolution[1];
The resolution and geometry arrays are empty.
Am I missing something simple?
Thanks,
Mark
$im = new Imagick();
$filename = 'junk.jpg';
$im -> readImage($filename);
$photobytes = $im ->getImageSize();
$photoheight = $im ->getImageHeight();
$photowidth = $im ->getImageWidth();
// the above functions work and return values that I expect
//the functions below do not return any values
$geometry = $im->getImageGeometry();
$geomX = $geometry[0];
$geomY = $geometry[1];
$resolution = $im->getImageResolution();
$resX = $resolution[0];
$resY = $resolution[1];
The resolution and geometry arrays are empty.
Am I missing something simple?
Thanks,
Mark