Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: PNG Image

  1. #1
    Join Date
    Nov 2008
    Posts
    19
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default PNG Image

    Can I use PNG image for web ? What benefit of it?

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Yes you can use a .png image format for the web. To find out the benefits:
    http://www.atalasoft.com/PNG.aspx
    Jeremy | jfein.net

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It is certainly worth switching to PNGs for anything but animations, but a couple of things do bear mentioning which that page missed:
    • The GIF patent has expired in most places, and is therefore no longer an issue;
    • Gamma correction can have rather nasty effects for Web images, and you're probably best off disabling it in your images (in the GIMP, simply untick the 'save gamma levels' when exporting as PNG);
    • IE<7 have issues with PNG transparency, and require a rather ugly and somewhat limited JScript workaround;
    • and, to end on a positive note, PNGs usually have a much smaller filesize than their equivalent GIFs.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Jul 2008
    Posts
    22
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I make almost all of my files (except for certain types:animations and what not) PNG's and I love it.

  5. #5
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Ok, keep using it.
    Jeremy | jfein.net

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Ah, just to clarify: when I said
    It is certainly worth switching to PNGs for anything but animations
    I was referring to usages in which GIFs are common. JPEGs have a separate niche, and are still the format of choice for distribution of images with a lot of colour detail, like photographs.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Dec 2008
    Posts
    35
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default

    PNG is awesome but in some of the old browsers the tranparent parts will appear with a background color instead.. I don't lnow this but i think it's PNG-24 only??

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by myself
    IE<7 have issues with PNG transparency, and require a rather ugly and somewhat limited JScript workaround;
    Yes, PNG-24 is the variant with transparency.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    All PNG versions I'm aware of have transparency available, even if it is only single layer transparency as is available in GIF. It's the version(s) with alpha channel transparency (a method well suited to gradient opacity) that isn't supported in IE < 7, except via the alpha image loader filter (IE 5.5 and up only), and even then it works out quite differently than a normal image tag or background image would. As a result many folks resort to a script to handle the 'heavy lifting' of getting it to look like a regular image tag or background image. But the tags may be written out 'by hand' if one knows how. Regardless of how it's done though, the filter itself still requires javascript and 'safe' Active X enabled.

    If your PNG image may be rendered adequately with 256 colors or less and only single layer transparency or no transparency, no filter is required in any browser, as long as you save it in the more limited GIF like PNG format that supports only 256 colors. Why do so? Why not just save as GIF? Because PNG can sometimes result in an image that requires less bytes than GIF.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Apr 2008
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Like many others, I tried a lot of different "transparent-png-scripts", but none of them worked just the way I wanted it. And then... I came upon this article about PNG8-transparency. Works great, and NO script needed! (Although you do need Fireworks...)

Tags for this Thread

Bookmarks

Posting Permissions

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