Bugfix: Handling cases where the image is the correct pixel dimensions

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Nighswonger 2008-04-10 02:35:53 -04:00 committed by Joshua Ferraro
parent bedb9fffa0
commit e15e2f9118
1 changed files with 5 additions and 0 deletions

View File

@ -243,6 +243,11 @@ sub handle_file {
$imgfile = $img[0];
warn "$filename is " . length($imgfile) . " bytes after resizing.";
undef $image; # This object can get big...
} else {
my @img = $image->ImageToBlob();
$imgfile = $img[0];
$debug and warn "$filename is " . length($imgfile) . " bytes.";
undef $image;
}
$debug and warn "Image is of mimetype $mimetype";
my $dberror = PutPatronImage($cardnumber,$mimetype, $imgfile) if $mimetype;