View Full Version : filtering specific colors

12-25-2002, 09: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

12-25-2002, 02: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.

12-25-2002, 02: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 [::

12-27-2002, 12:05 AM
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?

12-27-2002, 12:16 AM
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.