I know I'm doing something wrong but could anyone point me to what it is. I'm trying to get the size attributes from a .gif using the code shown below (I think it's something to do with how I'm passing $imageData into imgsize):
$imageWidth and $imageHeight are always empty.
Thanks for any info...
Code:
use HTTP::Request;
use LWP::UserAgent;
use Image::Size;
my $ua = LWP::UserAgent->new(timeout => 30);
my $request = HTTP::Request->new(GET => "[URL unfurl="true"]http://somewhere.com/image.gif");[/URL]
my $response = $ua->request($request);
my $imageData = $response->content_type();
my ($imageWidth, $imageHeight) = imgsize($imageData);
$imageWidth and $imageHeight are always empty.
Thanks for any info...