Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 34793
Status: resolved
Priority: 0/
Queue: GD

Owner: Nobody in particular
Requestors: bill [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Error recognizing JPG File in GD::Image->new($filename)
Date: Wed, 9 Apr 2008 12:38:39 -0700
To: <bug-GD [...]>
From: "Bill Rose" <bill [...]>
Download (untitled) / with headers
text/plain 658b
Attached JPG opens fine in just about any photo viewing program, but GD doesn't recognize the file as a JPG. If I force GD by using GD::Image->newFromJpeg, then it seems to open ok. I'm actually using Image::Resize, but it just calls GD::Image->new which was returning undef, so Image::Resize was dieing. $orig_file = "<attached JPG to this email>"; My original code: use Image::Resize; my $image = Image::Resize->new($orig_file); #<--- This was dieing, as it calls GD::Image->new which returns undef My updated code: use Image::Resize; my $mygd = GD::Image->newFromJpeg($orig_file, 1); my $image = Image::Resize->new($mygd); Thanks, -Bill
Download ValisaMLS-1.jpg
image/jpeg 223k

Message body is not shown because sender requested not to inline it.

The wrong jpeg detection was fixed in 2.57 -- Reini Urban

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to