l.frankline has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
I am seeking for a module that extracts the details of a particular image format like (GIF,JPG,TIF).
Can anybody help me...
Thanks
Franklin

Edit: g0n - removed code tags

Replies are listed 'Best First'.
Re: Extract details from image files
by ikegami (Patriarch) on Nov 04, 2005 at 05:22 UTC
    Image::Info is a lightweight module (unlike ImageMagick) designed to do just that.
Re: Extract details from image files
by johnnywang (Priest) on Nov 04, 2005 at 05:13 UTC
    you can use Imagemagick and its perl binding: perlmagick
Re: Extract details from image files
by gube (Parson) on Nov 04, 2005 at 12:19 UTC
Re: Extract details from image files
by zentara (Cardinal) on Nov 04, 2005 at 15:21 UTC
    #!/usr/bin/perl -w use Image::Magick; my $x = $ARGV[0]; my $image = Image::Magick->new; $image->Read($x); my ($width, $height, $size, $format) = $image->Ping($x); print $width,"\n", $height,"\n" ,$size,"\n", $format,"\n";

    I'm not really a human, but I play one on earth. flash japh
Re: Extract details from image files
by l.frankline (Hermit) on Nov 05, 2005 at 03:57 UTC
    Hi Monks,

    Thank u all for putting time to give solution for my question.

    Regards,
    Franklin