Bug #11813 Updated: ImageGammaCorrect no longer works
| From: | ssb@php.net | Date: | Tue, 16 Oct 2001 05:42:38 +0000 |
| Subject: | Bug #11813 Updated: ImageGammaCorrect no longer works | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68003@lists.php.net to get a copy of this message | ||
ID: 11813
Updated by: ssb
Reported By: steve@stevegodwin.com
Old Status: Critical
Status: Closed
Bug Type: GD related
Operating System: Win NT 4.0
PHP Version: 4.0.6
New Comment:
Closing. Next Windows binaries will have to use GD 1.8.x.
Previous Comments:
------------------------------------------------------------------------
[2001-10-02 18:22:46] sniper@php.net
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.
--Jani
------------------------------------------------------------------------
[2001-07-21 20:47:36] andy@php.net
Try setting the error_reporting level so that the script
shows EVERYTHING. This may or may not help.
------------------------------------------------------------------------
[2001-06-30 19:20:05] steve@stevegodwin.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.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=11813&edit=1