Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
Perl-Sensitive Sunglasses
 
PerlMonks  

Extract details from image files

by l.frankline (Hermit)
on Nov 04, 2005 at 00:07 UTC ( [id://505614]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

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 johnnywang (Priest) on Nov 04, 2005 at 00:13 UTC
    you can use Imagemagick and its perl binding: perlmagick
Re: Extract details from image files
by ikegami (Patriarch) on Nov 04, 2005 at 00:22 UTC
    Image::Info is a lightweight module (unlike ImageMagick) designed to do just that.
Re: Extract details from image files
by gube (Parson) on Nov 04, 2005 at 07:19 UTC
Re: Extract details from image files
by zentara (Cardinal) on Nov 04, 2005 at 10: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 04, 2005 at 22:57 UTC
    Hi Monks,

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

    Regards,
    Franklin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://505614]
Approved by johnnywang
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.