#23178 [NEW]: corrupt header with imagegd2()
| From: | alberty at neptunelabs dot de | Date: | Sat, 12 Apr 2003 13:01:19 +0000 |
| Subject: | #23178 [NEW]: corrupt header with imagegd2() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37597@lists.php.net to get a copy of this message | ||
From: alberty at neptunelabs dot de
Operating system: i686-pc-linux-gnu
PHP version: 4CVS-2003-04-12 (stable)
PHP Bug Type: GD related
Bug description: corrupt header with imagegd2()
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 bug report at http://bugs.php.net/?id=23178&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23178&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23178&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23178&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23178&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23178&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23178&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23178&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23178&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23178&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23178&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23178&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23178&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23178&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23178&r=gnused