in reply to image sizes (not local)
How about this: Download the image into a scalar and determine the image size from there.
#!/usr/bin/perl use strict; use warnings; use LWP::Simple; use Image::Size; my $url = 'YOUR URL HERE'; my $img = get($url); my ($width, $height) = imgsize(\$img); print "$url is ${width}x${height}\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: image sizes (not local)
by sulfericacid (Deacon) on Jun 25, 2006 at 18:23 UTC | |
by ikegami (Patriarch) on Jun 26, 2006 at 05:24 UTC |
In Section
Seekers of Perl Wisdom