Get Size of EPS file
Posted: 2007-03-26T00:33:43-07:00
Hi all,
I'm new to ImageMagick and also programming.
I'd like to read a .eps files and get the attribute of this file
such as the size (pixel), and the dpi (density)
$image = Image::Magick->new;
$x = $image->Read("$inDir/$fileName");
warn "$x" if "$x";
$density= $image->Get(density);
print "$density";
$size = $image->Get(size);
print "$size");
But the result is not right, the original files dpi is 96x96 but I get 72x72 instead
for the size, I get empty string
Can any1 help ?
Many Thanks
btw, where can i get the full documentation of imagemagick
I'm new to ImageMagick and also programming.
I'd like to read a .eps files and get the attribute of this file
such as the size (pixel), and the dpi (density)
$image = Image::Magick->new;
$x = $image->Read("$inDir/$fileName");
warn "$x" if "$x";
$density= $image->Get(density);
print "$density";
$size = $image->Get(size);
print "$size");
But the result is not right, the original files dpi is 96x96 but I get 72x72 instead
for the size, I get empty string
Can any1 help ?
Many Thanks
btw, where can i get the full documentation of imagemagick