Red Hat Bugzilla – Bug 149946
PHP GD ImageCopyMerge broken
Last modified: 2007-11-30 17:07:06 EST
Description of problem:
The PHP version that is shipped with RedHat ES3 has a bug in thi GD
imagecopymerge function, making that function unusable. This has been
fixed upstream. Bug information is located here:
Version-Release number of selected component (if applicable):
# rpm -q php
Steps to Reproduce:
create a file called test.php in a websites document root:
$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);
wget this php file, rename it to test.png , then xv it.
A black box
A grey box
Created attachment 111506 [details]
Patch for the PHP SPEC file
Created attachment 111507 [details]
Patch to fix the ImageCopyMerge function.
Thanks for the contribution, Samuel.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.