2006/6/11, Anthony Ettinger <[EMAIL PROTECTED]>:

It appears $magic->Get('geometry'); is not a valid attribute, although
it's in the docs, it returns undefined.

http://www.imagemagick.org/script/perl-magick.php
"Get an Image Attribute"
geometry        string          image geometry
height  integer         the number of rows or height of an image
width   integer         the number of columns or width of an image

I can only get the dimensions of an image by using

$magic->Get('height');
$magic->Get("width");


Ping() is a convenience method that returns information about an image
without having to read the image into memory. It returns the width, height,
file size in bytes, and the file format of the image. You can specify more
than one filename but only one filehandle:

 ($width, $height, $size, $format) = $image->Ping('logo.png');
 ($width, $height, $size, $format) = $image->Ping(file=>\*IMAGE);
 ($width, $height, $size, $format) = $image->Ping(blob=>$blob);
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to