From: eric at pitte dot de
Operating system: Suse 8.2
PHP version: 4.3.2
PHP Bug Type: GD related
Bug description: imagecopymergegray
Description:
------------
I see a problem with the imagecopymergegray funktion.
It does not seems to be possible to make grayscale from a png color
image.
See my code. Spion.png is a color image and spion2 should be a grayscale
one, but the result is also a color picture.
Is this problem known ?
Reproduce code:
---------------
<?php
$pic = imageCreateFrompng("spion.png");
imagecopymergegray($pic,$pic,0,0,0,0,500,500,20);
imagepng($pic,"spion2.png");
imagedestroy($pic);
?>
--
Edit bug report at http://bugs.php.net/?id=24585&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24585&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24585&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24585&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24585&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24585&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24585&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24585&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24585&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24585&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24585&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24585&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24585&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24585&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24585&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24585&r=gnused