Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: image upload size detection

by Samy_rio (Vicar)
on Aug 07, 2007 at 05:34 UTC ( [id://630962]=note: print w/replies, xml ) Need Help??


in reply to image upload size detection

TIMTOWTDI

use strict; use warnings; use Image::Info qw(image_info dim); opendir (FF, 'D:\Logos'); my @image = grep /\.(jpg|gif|png)$/, readdir(FF); closedir(FF); open (OUT, ">D:\\Logos\\Dim.txt") ||die ($!); for (@image){ my $info = image_info("D:\\Logos\\$_"); if (my $error = $info->{error}) { die "Can't parse image info: $error\n"; } my($w, $h) = dim($info); print OUT "$_\t$h\t$w\n"; } close(OUT);

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://630962]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-16 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found