|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-30 22:59 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
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