php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23178 corrupt header with imagegd2()
Submitted: 2003-04-12 08:01 UTC Modified: 2003-04-28 11:33 UTC
From: alberty at neptunelabs dot de Assigned:
Status: No Feedback Package: GD related
PHP Version: 4CVS-2003-04-12 (stable) OS: i686-pc-linux-gnu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alberty at neptunelabs dot de
New email:
PHP Version: OS:

 

 [2003-04-12 08:01 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-23 03:35 UTC] sniper@php.net
Please provide a sample script that shows how this is
supposedly broken..

 [2003-04-28 11:33 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 05:01:27 2024 UTC