|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 + 42 = ?
Subscribe to this entry?

 [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: Sat Sep 19 16:01:24 2020 UTC