ID: 34640
User updated by: richard dot quadling at bandvulc dot co dot uk
Reported By: richard dot quadling at bandvulc dot co dot uk
Status: Bogus
Bug Type: GD related
Operating System: Windows 2003 & XP SP2
PHP Version: 5.0.5
New Comment:
Ah. No.
I DO get an error now though!
Fatal error: imagecreatefrompng(): gd-png: fatal libpng error: IDAT:
CRC error in C:\png2pdf\bad.php on line 11
I downloaded the PNG to C:\bad.png and edited the script to ...
<?php
function convertPNG_PDF($sImageLocation)
{
// Define an array of image resources.
$aImages= array();
// Get fax dimensions.
$aImageData = getimagesize($sImageLocation);
// Get the image.
$aImages['Original'] = imagecreatefrompng($sImageLocation);
echo "We got here\n";
}
$sTestPDF = convertPNG_PDF('C:/bad.png');
echo "We got to here\n";
?>
Using the C:\PHP5\PHP.EXE c:\png2pdf\bad.php produces the same ...
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
... repeated MANY times ...
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Extra compressed data.
libpng warning: Extra compression data
Fatal error: imagecreatefrompng(): gd-png: fatal libpng error: IDAT:
CRC error in C:\png2pdf\bad.php on line 11
This particular image is broken. How do / can I upgrade libpng? Or is
this part of php_gd2.dll?
Previous Comments:
------------------------------------------------------------------------
[2005-09-26 16:31:59] richard dot quadling at bandvulc dot co dot uk
Ha.
Someone's deleted the broken image! Argh!!!!
Ha! Downloading it from the web and trying again.
------------------------------------------------------------------------
[2005-09-26 16:16:27] [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. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
PHP cannot do anything about warnings messages generated by the libpng
library.
------------------------------------------------------------------------
[2005-09-26 16:08:40] richard dot quadling at bandvulc dot co dot uk
Downloading it now.
Any ideas if this will be fixed in V5.0.x or only in V5.1.+?
------------------------------------------------------------------------
[2005-09-26 16:05:11] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
No crash on my system with 5_1 CVS. Try the latest snapshot and
hopefully you will be able to fail gracefully (you can hide the
warnings with the @ operator).
------------------------------------------------------------------------
[2005-09-26 10:18:51] richard dot quadling at bandvulc dot co dot uk
I didn't realise how long the error comment was. I just cut and pasted
from my console. Sorry.
------------------------------------------------------------------------
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/34640
--
Edit this bug report at http://bugs.php.net/?id=34640&edit=1