#24816 [NEW]: ImageCopyMerge doesn't work in 4.3.2
From: jakob at gosign dot de
Operating system: Linux
PHP version: 4.3.2
PHP Bug Type: GD related
Bug description: ImageCopyMerge doesn't work in 4.3.2
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 bug report at http://bugs.php.net/?id=24816&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24816&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24816&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24816&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24816&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24816&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24816&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24816&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24816&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24816&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24816&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24816&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24816&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24816&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24816&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24816&r=gnused
Thread (6 messages)
- jakob at gosign dot de