ID: 33125
Updated by: [EMAIL PROTECTED]
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