#33125 [Opn->Asn]: imagecopymergegray produces mosaic rainbow effect
| From: | sniper@php.net | Date: | Wed, 25 May 2005 09:27:30 +0000 |
| Subject: | #33125 [Opn->Asn]: imagecopymergegray produces mosaic rainbow effect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79473@lists.php.net to get a copy of this message | ||
ID: 33125
Updated by: sniper@php.net
Reported By: thomas at krantz dot com
-Status: Open
+Status: Assigned
Bug Type: GD related
Operating System: Linux
PHP Version: 4.3.11
Assigned To: pajoye
Previous Comments:
------------------------------------------------------------------------
[2005-05-24 13:50:25] thomas at krantz dot com
Description:
------------
When merging two images, one normal and the other one completely black,
the output from imagecopymergegray produces a weird looking mosaic of
the first.
Reproduce code:
---------------
<?php
$imPng = imagecreatefrompng("Tiles/Bamboo/9.png");
$imSrc = imagecreatefrompng("Tiles/Bamboo/black.png");
$height = imagesy($imPng);
imagecopymergegray($imPng, $imSrc, 0, 0, 0, 0, $height, $height, 50);
header("Content-type: image/png");
imagePng($imPng);
?>
See also
http://www.tilehog.net/prepermission/showbug.html
Expected result:
----------------
The original image should be darkened by 50%. This was the result in
the earlier version (4.3.10).
Actual result:
--------------
http://www.tilehog.net/prepermission/showbug.html
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33125&edit=1