[PHP-DEV] Bug #11813: ImageGammaCorrect no longer works From: steve <email protected>
Date: 06/30/01

From: steve <email protected>
Operating system: Win NT 4.0
PHP version: 4.0.6
PHP Bug Type: *Graphics related
Bug description: ImageGammaCorrect no longer works

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 Bug report at: http://bugs.php.net/?id=11813&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>