PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Images » Image_Transform » Bug #7610

GD-Driver: Loading corrupt JPEG results in halted script

Details

Submitted2006-05-12 08:46 UTC
Fromstephan at wentz dot it
Assignedpajoye
StatusBogus
PackageImage_Transform
PHP Version5.0.3
OSLinux
Roadmaps(Not assigned)

Comments

[2006-05-12 08:46 UTC] stephan at wentz dot it

Description:
------------
I'm using Image_Transform with the GD-Driver to resize some images.

A few minutes ago my script tried to load a corrupt JPEG, it resulted in this error:

Error [2] imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/srv/www/web17/html/shop/images/product_images/original_images/AW1789933.jpg.dummy' is not a valid JPEG file; Fatal error in line 148 of file /usr/share/php5/PEAR/Image/Transform/Driver/GD.php

I can view the image in the browser, but identify from imagemagick says:

# identify AW1789933.jpg.dummy
identify: Corrupt JPEG data: found marker 0xd9 instead of RST4.
AW1789933.jpg.dummy JPEG 640x480 DirectClass 29kb 0.030u 0:01

I looked at the code in Image/Transform/Driver/GD.php, maybe you should suppress the errors with a @ on line 148?
An error code is returned, so the script can be executed further...

The broken image can be found here:
http://www.sellsolutions.de/test.jpg