Edit report at https://bugs.php.net/bug.php?id=71316&edit=1
ID: 71316
Updated by: cmb@php.net
Reported by: humbads at alum dot mit dot edu
Summary: libpng warning from imagecreatefromstring
Status: Open
Type: Bug
Package: GD related
Operating System: FreeBSD 10.2
PHP Version: 5.6.17
Block user comment: N
Private report: N
New Comment:
> amazing for how many years random shit don't get fixed and no i> don't care who and where is resposnible
Thanks for your valuable open-source contribution.
Previous Comments:
------------------------------------------------------------------------
[2020-11-04 19:50:14] rtrtrtrtrt at dfdfdfdf dot dfd
amazing for how many years random shit don't get fixed and no i don't care who and where
is resposnible
------------------------------------------------------------------------
[2020-11-04 19:47:03] humbads at alum dot mit dot edu
Here is a workaround for the "libpng warning: Interlace handling should be turned on when using
png_read_image" warnings emitted to stdout.
$command = "mogrify -interlace none *.png";
exec($command);
Call this prior to calling imagecreatefromstring.
------------------------------------------------------------------------
[2020-07-10 10:35:52] bugreports2 at gmail dot com
this just sucks wehn you verify that some file is really a png and get spewed by this messages (and
no fileinfo is useless given that many errors it makes over years)
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: CRC error
------------------------------------------------------------------------
[2018-07-13 09:29:00] divinity76 at gmail dot com
can't be captured with ob_start() either, does anybody have a workaround?
------------------------------------------------------------------------
[2018-07-13 08:31:00] divinity76+spam at gmail dot com
can reproduce on php 7.1.17 @ ubuntu 17.10 (aka i inconveniently encountered this bug)
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=71316
--
Edit this bug report at https://bugs.php.net/bug.php?id=71316&edit=1