projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bedb9ff
)
Bugfix: Handling cases where the image is the correct pixel dimensions
author
Chris Nighswonger
<cnighswonger@foundations.edu>
Thu, 10 Apr 2008 06:35:53 +0000
(
02:35
-0400)
committer
Joshua Ferraro
<jmf@liblime.com>
Fri, 11 Apr 2008 21:54:54 +0000
(16:54 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
tools/picture-upload.pl
patch
|
blob
|
history
diff --git
a/tools/picture-upload.pl
b/tools/picture-upload.pl
index
68684fb
..
695adb3
100755
(executable)
--- a/
tools/picture-upload.pl
+++ b/
tools/picture-upload.pl
@@
-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;