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.

PNG vs GIF (regarding browser support/compatibility only)

Discussion in 'Photoshop' started by lemony, Dec 12, 2007.

  1. #1
    Hey guys!

    I like the PNG format for images because it is lossless. It's actually the format I use on my website for the logo and other small images.

    But I read an article at alistapart (this forum wont let me post a link to the article so here is a quote from it):
    So is there any truth to this? Does the PNG format have bad browser support?

    Should I convert all my PNGs to GIFs instead?

    Thanks guys!
     
    lemony, Dec 12, 2007 IP
  2. NsaneNoob

    NsaneNoob Peon

    Messages:
    2,103
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No, not really. But GIFs are mostly used for websites.
     
    NsaneNoob, Dec 12, 2007 IP
  3. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #3
    PNGs with transparency won't work in IE6, thats about it.
     
    blueparukia, Dec 12, 2007 IP
  4. jamesplankton

    jamesplankton Peon

    Messages:
    119
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The transparency of a PNG won't work in IE6. It shows a light blue background where it's supposed to be transparent. However, there are some simple javascripts you can add to your site to overcome the problem.
     
    jamesplankton, Dec 14, 2007 IP
  5. Mooseman

    Mooseman Peon

    Messages:
    453
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah like said above, all you need is some simple javascript and PNGs with transparency works in IE6.

    However, I always use .gif format on my images for the web (unless it's a real photo of course), no need for anything else. Except when I want transparency, then PNG is the choice.

    Oh and another thing, when I had PNG images (without transparency) on a site before, I noticed the colors where lighter in IE then in FF (or the opposite) for some reason.
     
    Mooseman, Dec 14, 2007 IP
  6. dvirhazout

    dvirhazout Active Member

    Messages:
    691
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #6
    PNG rulez!!
    gif has a realy bad quality..
    if you have problems with PNG&IE, then just google about it and you'll find many solutions ;)
     
    dvirhazout, Dec 14, 2007 IP
  7. Themystical

    Themystical Peon

    Messages:
    27
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It's a gamma correction problem, in the past drove me crazy like no other.
    You can read more about the problem here or simply google it.

    http://hsivonen.iki.fi/png-gamma/

    I wont discriminate on one format or the other, eventually I will use all of them base on the necessity of the case. If you don't have problems with gif no need to change, on the other end, if there is a special need, go with the format that delivers what you are looking for. Image quality, image size (kb), alpha support etc, all factors greatly effected by each format, just do some tests and see what is the best for you.
     
    Themystical, Dec 15, 2007 IP
  8. YourClone

    YourClone Peon

    Messages:
    35
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I really only use .gifs when I do animations. For anything other than that I use .pngs because of the ability for transparencies and the fact they can store layer information for things like Photoshop(this makes the file size go up rather quickly, so I only use this when there are only a few layers).
     
    YourClone, Dec 16, 2007 IP
  9. lemony

    lemony Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    very cool. thanks for the info guys!

    So basically the only time I need to be worried is when using PNG with transparency. But any other regular PNG is no problem to display in all browsers.

    Thanks! I was a bit worried after reading that article but now I understand :)
     
    lemony, Dec 26, 2007 IP
  10. jbladeus

    jbladeus Peon

    Messages:
    485
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Modern-day browsers (FF, IE7, Safari, Opera) all have support for Alpha transparencies in PNG. However, a lot of people still use IE6 which doesnt support such transparencies, so its prudent to create transparent stuff in GIF.
     
    jbladeus, Dec 27, 2007 IP