Get Size of EPS file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
12693065

Get Size of EPS file

Post by 12693065 »

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
Post Reply