#30942 [Bgs]: imageCreateFromPng() gives fatal error
ID: 30942
User updated by: hkh at netnords dot dk
Reported By: hkh at netnords dot dk
Status: Bogus
Bug Type: GD related
Operating System: win XP
PHP Version: 4.3.8
Assigned To: pajoye
New Comment:
Maybe the png files not are valid, but still PHP should not crash
according to the manual who ways "returns an empty string on failure."
Previous Comments:
------------------------------------------------------------------------
[2005-01-24 09:46:42] pajoye@php.net
Not a developer issue. Fix your image conversion tool.
--Pierre
------------------------------------------------------------------------
[2004-12-02 13:36:04] pajoye@php.net
The fact is you will not be able to read these images without using
another libpng (1.0.6 and later), compiled with:
#define PNG_SETJMP_NOT_SUPPORTED
#define PNG_ABORT()
The png files are not valid.
The fix will be to change the error to a warning and return false.
--Pierre
------------------------------------------------------------------------
[2004-12-02 12:01:05] hkh at netnords dot dk
http://www.hanskejserhansen.dk/png/
I don't have the original pictures. They was saved from a homepage via
a browser (Don't know witch because i use four different) to my
harddesk.
I tried to find the original pictures, but now they are jpg's not
bmp's. sorry.
------------------------------------------------------------------------
[2004-12-02 11:35:38] pajoye@php.net
Please provide an url with these images please (if possible both bmp
and png).
--Pierre
------------------------------------------------------------------------
[2004-12-02 11:19:31] hkh at netnords dot dk
I found out witch pictures, who gives this error. It's png's created
with acdsee (used to convert bmp's to png's). I have experinced no
trouble with these png's in other programs.
I also found out, some of the png's gives a
<b>Fatal error</b>: imagecreatefrompng(): gd-png: fatal libpng error:
Too many IDAT's found
Run a phpinfo() who tells me
GD Version bundled (2.0.23 compatible)
The ini file contains this
extension=php_gd2.dll
------------------------------------------------------------------------
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/30942
--
Edit this bug report at http://bugs.php.net/?id=30942&edit=1
Thread (8 messages)