Skip Menu |

This queue is for tickets about the Image-Resize CPAN distribution.

Report information
The Basics
Id: 71697
Status: new
Priority: 0/
Queue: Image-Resize

People
Owner: Nobody in particular
Requestors: qaimprove [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.01
  • 0.02
  • 0.03
  • 0.4
  • 0.5
Fixed in: (no value)



Subject: Died on zero-sized files
Client code: my $image = Image::Resize->new("$filename"); my $gd = $image->resize($w, $h); Result: Died at /usr/local/share/perl/5.10.0/Image/Resize.pm line 25. Image::Resize code: } else { unless ( -e $image ) { croak "Image::Resize->new(): file '$image' does not exist"; } $gd = GD::Image->new($image) or die $@; } You should check file size (as minimum) of file format (as maximum) before trying to use GD::Image->new