|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38179 Patch to enable copying of partial transparency palette images
Submitted: 2006-07-21 17:12 UTC Modified: 2006-07-23 21:51 UTC
From: seth at pricepages dot org Assigned: pajoye (profile)
Status: Closed Package: GD related
PHP Version: 5.1.4 OS: Mac 10.4
Private report: No CVE-ID: None
 [2006-07-21 17:12 UTC] seth at pricepages dot org
I've made a few tweaks to GD to get it to support partial 
palette transparency better.

The (now fixed) problem was that if a partial transparency 
palette image was copied over any background, the palette 
image became opaque.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-23 09:24 UTC]
Which are you trying to solve?

Please post a link to script to reproduce your problem, with the expected image and what you get.
 [2006-07-23 17:46 UTC] seth at pricepages dot org
I've upped an example at:

Included is the source image, test script, and two output 
files. The test composites the source image grad.png (a 
alpha gradient) onto a blank white canvas.

test.orig.png is what the output should currently look like.

test.patch.png is how it looks after the patch.
 [2006-07-23 21:51 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Ok I got the problem. I did not use your patch, it modifies the wrong of the code, breaking other features. However thanks you to have tried :)

Fixed in 5.2 and HEAD.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 23 20:01:23 2020 UTC