View Full Version : filtering specific colors
kwhubby
12-25-2002, 08:52 AM
How do you make a specific hex color in an image become transparent. such as the blue (0000ff) in an image being removed and made transparent
chrismiceli
12-25-2002, 01:00 PM
i don't think this can be done unless mabey java can do it, javascript can't. or mabey css with a filter, i don't know.
krycek
12-25-2002, 01:05 PM
you have to do it in the graphics program that creates the .gif
You have a choice of different types of transparency, e.g. index, alpha.
You can set the current bg color of the image to be transparent, or specify your own etc.
All graphics programs can do this (well all decent ones lol)
Merry Christmas Everyone!
::] krycek [::
kwhubby
12-26-2002, 11:05 PM
oh... I did not know that gif can have alpha transparencies!!
thanks!!! I had some animated gifs, and wanted to have parts be transparent. will the png for IE transparency trick work with gifs?? or is it different?
I don't know the details of how to do it, but you can create PNG images with transparency using the GD Library in php.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.