PDA

View Full Version : PHP PNG Transparency Question


KW802
06-27-2006, 10:18 PM
Using PHP only anybody know how to disable the transparency of a PNG and then replace the transparency color with a different color?

Essentially the problem is a PNG file that has "red" assigned as it's transparency color; I want to swap "red" for "blue" and not have the PNG transparent anymore.

Thoughts?

sabret00the
06-29-2006, 08:19 PM
you could copy the image and present the copied image on the fly.

however i've not played with alpha transparency and images, i'd suggest checking the gd pages at php.net.