Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Location
    Carmel California
    Posts
    471
    Thanks
    0
    Thanked 1 Time in 1 Post

    filtering specific colors

    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
    Kris Hubby
    kwhubby site

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Regular Coder
    Join Date
    Nov 2002
    Location
    Bristol, UK
    Posts
    932
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 [::
    ithium | SOAPI | SDP | PTPScript manual
    "ithium is a non-profit webhost, which is pretty much unique. The mission of ithium is to provide free hosting resources for worthwhile and needy non-profit projects, which otherwise may not be able to obtain such facilities. The money from commercial customers goes to maintain ithium's servers and further development."

  • #4
    Regular Coder
    Join Date
    Nov 2002
    Location
    Carmel California
    Posts
    471
    Thanks
    0
    Thanked 1 Time in 1 Post
    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?
    Kris Hubby
    kwhubby site

  • #5
    Regular Coder
    Join Date
    Oct 2002
    Posts
    380
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •