#23178 [Opn->Fbk]: corrupt header with imagegd2()
| From: | sniper@php.net | Date: | Wed, 23 Apr 2003 08:35:26 +0000 |
| Subject: | #23178 [Opn->Fbk]: corrupt header with imagegd2() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38153@lists.php.net to get a copy of this message | ||
ID: 23178
Updated by: sniper@php.net
Reported By: alberty at neptunelabs dot de
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: i686-pc-linux-gnu
PHP Version: 4CVS-2003-04-12 (stable)
New Comment:
Please provide a sample script that shows how this is
supposedly broken..
Previous Comments:
------------------------------------------------------------------------
[2003-04-12 08:01:19] alberty at neptunelabs dot de
Hi,
the imagegd2 command with the bundled gdlib (2.0.11 & 2.0.12)
writes wrong gd2 images.
the command writes an incorrect file header, and also the command
doesnt support the compression feature, although GD2_FMT_COMPRESSED
is declared.
The sources in gd.c declares IMG_GD2_COMPRESSED but it i cant see any
gd2 support for these in _php_image_output().
The correct calling ist
gdImageGd2(im, out, 0, GD2_FMT_COMPRESSED);
gdImageGd2(im, out, 0, GD2_FMT_RAW);
resp:
gdImageGd2(im, out, cs, fmt);
instead of
gdImageGd2(im, out);
in the default: case.
Kind regards,
Steve
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23178&edit=1