ID: 24816 Updated by: [EMAIL PROTECTED] Reported By: jakob at gosign dot de -Status: Open +Status: Feedback Bug Type: GD related Operating System: Linux PHP Version: 4.3.2 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Works fine in latest CVS. Previous Comments: ------------------------------------------------------------------------ [2003-07-26 06:32:52] jakob at gosign dot de Description: ------------ ImageCopyMerge doesn't work in PHP 4.3.2. It seems as though the source image is ignored and instead a black image is used for merging the colors. The same script works in PHP 4.3.1 as expected. Reproduce code: --------------- $img = ImageCreateTrueColor(100, 100); ImageFill($img, 0, 0, ImageColorAllocate($img, 255, 255, 255)); $img2 = ImageCreateTrueColor(50, 50); ImageFill($img2, 0, 0, ImageColorAllocate($img2, 0, 0, 0)); ImageCopyMerge($img, $img2, 0, 0, 0, 0, 50, 50, 50); ImagePNG($img); Expected result: ---------------- A gray box. (50% black) Actual result: -------------- A black box. (100% black) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24816&edit=1
