Problem with Image::Info
- From: Gary <gsvdl@xxxxxxxxx>
- Date: 28 Apr 2007 13:07:56 -0700
I am trying to write a perl cgi script using Image::Info. The problem
is
I am not getting any info from Image::Info. The hash comes back
empty.
If I reduce my script down to what is shown below the page that gets
displayed
only has the photo. If the hash wasn't empty "Good" should be
displayed above
the photo. I have never used Image::Info before. I am using the
module
description in CPAN, there are no error messages in the browser
error log and the page is being displayed. Are there any suggestions?
Gary
#!/usr/bin/perl -w
use strict;
use CGI qw(:standard);
use Image::Info qw(image_info dim);
my $Photo = param('photo');
my $info = image_info("$Photo");
print header;
print start_html(-title=>'My Photos', -bgcolor=>'#FFDEAD');
if (%info){
print "Good <br> \n";
}
print "<img SRC=\"$Photo\"/>",
print end_html;
.
- Follow-Ups:
- Re: Problem with Image::Info
- From: Brian Wakem
- Re: Problem with Image::Info
- Prev by Date: Re: Top Turds of comp.lang.perl.misc (2007)
- Next by Date: Re: Rounding up to the next .5
- Previous by thread: FAQ 4.53 How do I manipulate arrays of bits?
- Next by thread: Re: Problem with Image::Info
- Index(es):
Relevant Pages
|
|