1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help getting GIF transparency right

Discussion in 'Photoshop' started by MrBaseball34, Feb 28, 2007.

  1. #1
    {Using PaintShop Pro 7.0}
    Every time I try to set the transparency of these two images, I get
    jaggies and it doesn't look well on my site. Is there a trick to making
    a GIF transparent without getting the jaggies on different color backgrounds?


    Image1:http://www.austinmetrobaseball.com/2005_redesign/AMBLLogo.gif
    Image2:http://www.austinmetrobaseball.com/2005_redesign/MSBLLogo.gif

    Site:http://www.austinmetrobaseball.com/2005_redesign

    Look at the header graphic.
     
    MrBaseball34, Feb 28, 2007 IP
  2. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #2
    Not sure about the smaller logo from a first sight,
    but the bigger one on the left has got no transparency. It has a white background instead, have checked both with IE and Firefox. You might want to use PNG for that, although IE < 7 has got no support for PNG Transparency.
     
    Clive, Feb 28, 2007 IP
  3. MrBaseball34

    MrBaseball34 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have tried PNG with the PNG javascript fix and still can't get it right.
    It has a light blue background instead of transparent.
    I just uploaded both the transparent AMBLLogo.gif and AMBLLogo.png
     
    MrBaseball34, Feb 28, 2007 IP
  4. paperboy

    paperboy Peon

    Messages:
    137
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    PNGs will not display right in IE6, not that sure about 7, also gifs are not the best at holding transparency, the best idea for a gif would probably be to add a matte for the background color the image will be on.
     
    paperboy, Mar 2, 2007 IP
  5. ptb-cheng

    ptb-cheng Member

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #5
    I worked on it a little bit, here are you
     

    Attached Files:

    ptb-cheng, Mar 3, 2007 IP
  6. ptb-cheng

    ptb-cheng Member

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #6
    given the fact that you know what your background is, you can blend them together an create jpg file instead.

    I did that often to simplify my work :)
     
    ptb-cheng, Mar 3, 2007 IP
  7. MrBaseball34

    MrBaseball34 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ptb-cheng,
    If you look at the site, you will see why I cannot blend them.
    Open the site and resize your browser...
     
    MrBaseball34, Mar 8, 2007 IP
  8. MrBaseball34

    MrBaseball34 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You GIF looks pretty clean but it still has some whiteness in the edges next to the black areas. I cleaned up some in the ball.
     
    MrBaseball34, Mar 8, 2007 IP
  9. ptb-cheng

    ptb-cheng Member

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #9
    Yes, I could clean it up better. I was just in a rush. To get the perfect result, you have to do pixel by pixel to get rid of those white edge, I just don't have much time on it.

    I see what you mean by resizing problem. Then I guess, you have to spend time to clean it up pixel by pixel. You might want re consider your design so that the top banner didn't is fixed. Web design generally make fixed top banner, at least some part of it is fixed (say middle part here) and the left and right side can expand.

    Just my two cents, hope it helps,
    Good luck,
     
    ptb-cheng, Mar 8, 2007 IP
  10. EWD

    EWD Well-Known Member

    Messages:
    1,688
    Likes Received:
    85
    Best Answers:
    0
    Trophy Points:
    155
    #10
    Ok.. here is the thing that you have to do to make the gif's transparent.

    Before making a transparent gif, decide your background color. Say yours is blue. Now while making the gif, set the back ground color to blue and then while exporting or saving it, set alpha transparency to that blue color.

    The resulting gif image will have blue jagged edges. But these will not show when you put it on your background as they will blend. :)

    I do that all the time. You cannot have perfect transparency with GIFs. You can only have it with PNG. But PNGs are browser dependent.

    The reason that perfect transparency cannot be attained in GIFs is because of the multiple color tones. Even if its 256 colors or 16-bit, the colortones are all mixed up. Thus the trick :)
     
    EWD, Mar 8, 2007 IP
  11. MrBaseball34

    MrBaseball34 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    If you were not aware, the "background" has multiple colors. Look at the site
    to see. This is why it is more difficult to do it. I know I've seen it done
    before. I just can't get it right.
     
    MrBaseball34, Mar 9, 2007 IP
  12. MrBaseball34

    MrBaseball34 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I have a perfectly transparent PNG and have tried using it with the javascript IE hack but it still shows with a light blue background.
     
    MrBaseball34, Mar 9, 2007 IP
  13. MrBaseball34

    MrBaseball34 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I may have to break down and do this in Photoshop although I'm not that
    good with it.
     
    MrBaseball34, Mar 9, 2007 IP
  14. ptb-cheng

    ptb-cheng Member

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #14
    Yeah, break it down to pieces. You will see lot of profession design do such way.

    Just arranged them seemless together. that will be all set. Good luck
     
    ptb-cheng, Mar 13, 2007 IP
  15. kernes

    kernes Peon

    Messages:
    184
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #15
    i use photoimpact its easy to make transparency to images.if you want you can use
     
    kernes, Mar 13, 2007 IP
  16. rize

    rize Banned

    Messages:
    171
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #16
    add 1 px white outline.. or feather it :)
     
    rize, Mar 14, 2007 IP