Page 1 of 1

how to make trasparent the background of an Image

Posted: Wed May 20, 2009 11:11 am
by dtrejogo
Hi everybody.

How can I add transparent background to any Image.. for example I have a JPEG image with white background color, and I want to change this background color to transparent (.png). I think that this can be done with the GD Library of php but I have tried with functions like ImageCreateTrueColor, ImageColorAllocate, ImageColorTransparent... but I have not been successful..

thanks .. !

Re: how to make trasparent the background of an Image

Posted: Wed May 20, 2009 4:24 pm
by Benjamin
:arrow: Moved to PHPGD.com. Onion2k would know :)