#24585 [Opn->Fbk]: imagecopymergegray
| From: | sniper@php.net | Date: | Thu, 10 Jul 2003 16:59:46 +0000 |
| Subject: | #24585 [Opn->Fbk]: imagecopymergegray | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-43668@lists.php.net to get a copy of this message | ||
ID: 24585
Updated by: sniper@php.net
Reported By: eric at pitte dot de
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: Suse 8.2
PHP Version: 4.3.2
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2003-07-10 05:37:05] eric at pitte dot de
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 this bug report at http://bugs.php.net/?id=24585&edit=1