I'm trying to get the command line equivalent of "identify image.png" to work in Perl.
How do you go about doing this?
Thanks.
Update: I have the following code
use Image::Magick;
$image = Image::Magick->new;
open(IMAGE, 'image.gif');
$image->Identify(file => \*IMAGE);
close(IMAGE);
But get the following error:
Can't locate Image/Magick.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .)