ID:               29878
 Updated by:       [EMAIL PROTECTED]
 Reported By:      cyleriggs at kc dot rr dot com
 Status:           Bogus
 Bug Type:         GD related
 Operating System: Linux 2.6.8.1
 PHP Version:      5.0.1
 Assigned To:      pajoye
 New Comment:

Corrupted files are invalid, and may crash an application if attempted
to use. That's why we will not implement that. (Actually, it's not a
PHP issue either, it has to do with how libgd handles opening files).


Previous Comments:
------------------------------------------------------------------------

[2004-10-07 03:18:23] cyleriggs at kc dot rr dot com

Okay, so how about a feature suggestion than, i think that there should
be the option in GD that allows you to try and open images that have a
few corrupted bytes. If other programs can open them just fine what
would be the harm in allowing programmers to choose to live with the
corruptions?

------------------------------------------------------------------------

[2004-10-05 09:33:47] [EMAIL PROTECTED]

PHP only reads non-coprrupted files - there is no bug here.

------------------------------------------------------------------------

[2004-10-05 04:34:39] cyleriggs at kc dot rr dot com

After playing around with the images themselves i have found that
converting them from jpeg to png then back to jpeg fixed the problem
and yielded no quality loss. I used the linux tool set called
ImageMagick to do this. I wrote a short perl script to go through all
my images and fix them. Other than this i have found no other way of
stopping this. one interesting fact though is that while converting the
images with the imagemagick utility it complained about some
corruptions, however it was still able to open them fine and convert
them. Maybe PHP is being too picky about the images that it opens as
despite a few corrupted bytes EVERYthing was able to open these images
except for PHP.

------------------------------------------------------------------------

[2004-09-30 21:05:50] paul at gslip dot com

I disagree. I have used my code successfully on montypics.com until the
upgrade to php 5.0.1. I now get exactly the same results as the original
poster.
Images that worked fine on previous versions now do not. I have a
sample image that can be provided. I also have code I can share with
the PHP team although I cannot post it here as it is lengthy and
copyrighted.

------------------------------------------------------------------------

[2004-08-29 12:22:14] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Your jpeg file is not valid. PHP could not take care of each possible
failures in image files. Desktop softwares could. Fix your image and
replace it.

--Pierre


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/29878

-- 
Edit this bug report at http://bugs.php.net/?id=29878&edit=1

Reply via email to