|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11813 ImageGammaCorrect no longer works
Submitted: 2001-06-30 19:20 UTC Modified: 2002-02-03 07:10 UTC
From: steve at stevegodwin dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.6 OS: Win NT 4.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: steve at stevegodwin dot com
New email:
PHP Version: OS:


 [2001-06-30 19:20 UTC] steve at stevegodwin dot com
A script that worked in PHP 4.0.4 no longer works in PHP 4.0.6 (with the php_gd.dll bundled with the Win32 binaries). 

Here's a snippet:
$srcImgName = "SWD2.jpg";
$dstImgName = "gam_" . $srcImgName;
$srcImage = ImageCreateFromJPEG( $srcImgName );
ImageGammaCorrect( $srcImage, 1.8, 2.2 );
ImageJPEG( $srcImage, $dstImgName );

No errors are produced, and the new image is created but it is identical to the original -- no gamma correction has occurred.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-21 20:47 UTC]
Try setting the error_reporting level so that the script
shows EVERYTHING.  This may or may not help.
 [2001-10-02 18:22 UTC]
This is because the binaries use GD 2.0.1..which is still
in beta state. We have to have extension which uses GD 1.8.x
in next release.


 [2001-10-16 01:42 UTC]
Closing.  Next Windows binaries will have to use GD 1.8.x.
 [2001-10-16 10:22 UTC]
Let's keep this open (critical) until it really is solved.
And I think there should be two modules in the win32 release, for both 1.8.x and 2.0.x versions of GD.


 [2002-02-03 07:07 UTC]
has this been resolved with 4.1.1 ?

 [2002-02-03 07:10 UTC]
Yes, PHP 4.1.1 shipped with a module for both GD 1.8 and 2

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Dec 05 22:01:29 2023 UTC