SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    Jun 2007
    Location
    Sydney, Australia
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE PNG Gamma Correction

    Ok, so upon testing a site I am making in IE8 Beta 2, it appears that a png image is darker than it displays in every other browser...

    Apparently IE have problems with reading PNG gamma correction or something.

    I had never heard of this problem before...but anyway, is there a solution? Or should I just stay away from PNGs...

    Thanks

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,075
    Mentioned
    153 Post(s)
    Tagged
    2 Thread(s)
    This what went on in Microsoft HQ:

    A: "Well, lets see, how about PNG support in IE8?"
    B: "I dunno man, we're notorious for breaking it, let's do that again!"
    A: "Yeah, let's do the trick again like we did in IE < 7; showing transparency as grey!"
    B: "Hmmm. We already did that ..."
    A: "True... Maybe something else then..."
    B: "I know, let's make them darker than in ALL other browsers"
    A: "Sounds great! Let's do it!"



    I know this doesn't help you, but I felt it needed to be said; yet another issue with IE (like there weren't enough issues already)

  3. #3
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This can be cured by stripping the gamma information from the images. There are a few program out there that will do this - Google for "png optimizer".

  4. #4
    Night Elf silver trophybronze trophy Varelse's Avatar
    Join Date
    Mar 2005
    Location
    eu
    Posts
    5,967
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    What Centauri said
    You can use PNGCrush or PNGOut Plugin for Photoshop.
    FreelanceDaddy - freelancer's personal advisor
    █ Guide and advice for freelancers starting their career
    █ Over 1000 projects posted on freelance markets every day
    █ One-stop resource for online freelancing

  5. #5
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ScallioXTX View Post
    yet another issue with IE (like there weren't enough issues already)
    This isn't a new issue, IE always used gamma correction while the other browsers ignored it. So really IE is following the spec of the PNG format. However, gamma just does not work on the web.

    http://www.sitepoint.com/newsletter/...&format=html#7

    It should be noted that Firefox 3 now supports PNG Gamma Correction. Correction make that color profiles.

    Edit:


    I made a erroneous mistake, I should have conducted further research.
    Internet Explorer ≤6 also renders PNGs in a slightly incorrect color gamut. If a GIF and PNG image of several colors are placed side-by-side on a page, a user can often see a slight difference in color. This is due to an incorrect handling of the gAMA ancillary chunk.
    Last edited by logic_earth; Aug 28, 2008 at 11:57.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



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
  •