Slashdot Mirror


Implementating Transparent PNGs in IE7

Brandon writes "Over at the official IE Blog, Sam Fortiner has posted some very detailed information regarding Alpha PNG Rendering in IE7. From the article: 'As the dev who implemented the support, I can state that it was neither a bug-fix nor did it require a re-write of the display engine. Instead, it ended up being somewhere in-between the two and required what I would call "feature work." Implementing transparency support for PNG images required a significant amount of modification to the image decoding and display pipeline in IE along with a significant amount of new functionality added to the PNG decoder.'"

25 of 97 comments (clear)

  1. libpng.... by __david__ · · Score: 4, Interesting

    So this implies they wrote their own PNG reading routines instead of using libpng?

    Is this some sort of NIH thing?

    libpng has a BSDish licence if I recall... So that can't be the issue...

    -David

    1. Re:libpng.... by Chris_Jefferson · · Score: 4, Informative

      If you read the article, you'd find the main problem is that all their internal data structures and rendering system were only designed for boolean transparency.

      libpng wouldn't have helped with either of these, and this is where most of the work was.

      --
      Combination - fun iPhone puzzling
    2. Re:libpng.... by Quarters · · Score: 2, Insightful
      When Microsoft puts BSD licensed TCP/IP code in an OS people use it as a cheap opportunity to sound psuedo-intellectual by bringing it up in vague "Microsoft is bad because they didn't write their own" terms whenever possible.

      Now those same people want to say "Microsoft is bad because they didn't use BSD licensed PNG code."

      The hypocrisy is staggering.

    3. Re:libpng.... by eraserewind · · Score: 2, Insightful

      Um, it's only hypocracy if the same person says it.

  2. Probably because IE displays images as they load.. by cwensley · · Score: 3, Interesting

    I'd imagine this would be why IE can show images as they download, instead of waiting for the whole thing to download like other browsers...

    I could be wrong..

  3. Monopoly by augustz · · Score: 4, Insightful

    This is a really interesting case study in monopoly behavior and the value of competition. Microsoft you will remember pretty much stopped IE development and shut down the IE team.

    Firefox came along, and whamo, all of a sudden Microsoft has developers writing things like. Very impressive. What's interesting for me is they are huge huge company by comparision to Firefox, but it took firefox to really get them to start making some improvements.

  4. You are by leonbrooks · · Score: 4, Informative

    Konqueror displays partial images as they download. The original friggin' browser in OS/2 did the same thing. It's hardly new.

    Think about it: what's the whole purpose in Progressive-mode JPEGs?

    --
    Got time? Spend some of it coding or testing
  5. Implementating? by Atrax · · Score: 3, Funny

    put your spellchecker on danger money, baby.

    --
    Screw you all! I'm off to the pub
    1. Re:Implementating? by abulafia · · Score: 2, Funny

      Naw, they're just misoverestimavating the submittzors.

      --
      I forget what 8 was for.
    2. Re:Implementating? by Stephen+Williams · · Score: 2, Funny

      What's the problem? It's a perfectly cromulent word.

      </obsimpsons>

      -Stephen

    3. Re:Implementating? by NanoGator · · Score: 2, Funny

      "I think it's time I spent my precious picoseconds looking at some other website."

      If typos are such a sore spot with you, why come down into the forum area of Slashdot?

      --
      "Derp de derp."
  6. Reading between the lines of the story... by leonbrooks · · Score: 3, Informative

    ...the code they're rewriting has not been substantially changed since the days when GIF was king of the images.

    AFAICT, what they've finally added is genuine translucency (not the simple yes/no transparency of yore) to MSIE's image handlng.

    Does anyone know of any other (non-text-mode) web browser which hasn't already been doing translucency for years?

    --
    Got time? Spend some of it coding or testing
    1. Re:Reading between the lines of the story... by jericho4.0 · · Score: 2, Insightful
      "Obviously, if it wasn't a 'deep' problem, tney would have supported transparent PNGs years ago."

      The PNG support seems to have been done by one guy, in a few months. Not exactly a 'deep' problem for a company with Microsofts resources.

      I think the reason they didn't support it years ago is because they simply don't care.

      --
      "A language that doesn't affect the way you think about programming, is not worth knowing" - Alan Perlis
  7. Implementating? by eric.t.f.bat · · Score: 3, Informative

    Implementating? Implementating???!!!

    Something is very very wrong with the /. editors. I think it's time I spent my precious picoseconds looking at some other website.

    --
    I have discovered a truly remarkable .sig block which this margin is too small to conta
  8. Requires IE5, IE6 by julie-h · · Score: 3, Funny

    I have a question. When there is written

    "Requires IE5, IE6, or better"

    on a website. Does that mean Firefox?

    1. Re:Requires IE5, IE6 by FidelCatsro · · Score: 4, Funny

      to me "Best viewed in Microsoft Internet Explorer" say "Wanted , new web designer/Developer"

      --
      The only things certain in war are Propaganda and Death. You can never be sure which is which though
    2. Re:Requires IE5, IE6 by Baron_Yam · · Score: 2, Interesting

      As an extremely crappy web site maintainer (I maintain a moderately unimportant site as the last and least significant of many duties)...

      The first thing I did on taking over the job was convince my boss that I needed to install Firefox and a Tidy-based HTML validator to ensure the site had been coded correctly... it wasn't. Several things didn't work properly, and a few things here and there just didn't load at all.

      Now that I have Firefox on my PC, I use it by default, and pop up IE to check the site for IE compatibility. Firefox is just a better freakin' product, especially with my four or five fave extensions.

    3. Re:Requires IE5, IE6 by FidelCatsro · · Score: 2, Funny

      IE is a complete pain to code to , I have it installed on my Mac just for testing compatability if i ever feel like doing any web stuff.
      I end up making a php checker page sometimes to just redirect people to a striped down non complient page if they are using MSIE.
      Well thats ok for me , most of my stuff is for Unix type OS or mac so there isn't really much alternative , though i have got complaints from people whop use IE saying my site is broken , the reply is awlawys (if they are using MSIE) "No your browser is", Simple as that... though most people dont really have an option like that.
      The only awnser has been to code in some javascript check to alter parts of the page based on the browser . ;) When i was working as a web dev , there were days when i felt like taking a flight to the MS offices and going "Standards complient " on the IE team.

      --
      The only things certain in war are Propaganda and Death. You can never be sure which is which though
  9. Fixes by Adelbert · · Score: 3, Funny

    So IE7 will show transparent PNGs, Firefox 2.0 will render /. properly. What will I be able to complain about then?

  10. CSS support? by tryone · · Score: 5, Insightful

    Very nice. Now go fix the crappy CSS support.

    1. Re:CSS support? by Nevyn · · Score: 2, Informative

      You need to specify "display: inline-table;" for the table element.

      --
      ustr: Managed string API with ave. 44% overhead over strdup(), for 0-20B
    2. Re:CSS support? by Enrico+Pulatzo · · Score: 2, Insightful

      Are you trying to break CSS with your markup there, or do you have a legitimate reason for making a table display inline? When you make an element inline and force it to contain non-inline children this kind of thing happens. It'd be the same as wrapping a table with a span and complaining that the span isn't being applied correctly.

  11. Png, schming by the+eric+conspiracy · · Score: 2, Insightful

    Now that the LZW patent has exprired, whoop-de-doo. Where were they when we really needed good png support?

    What we need now is something that isn't a petri dish full of a rich agar browth waiting for every sort of web infection to take root and mulitply to the destruction of your computer, and something that adheres to CSS2 standards. But we already know that these needs aren't going to be met, so all I can draw as a conclusion is IE7? Bugger off. Waste of Time. Non-starter. Count on using Firefox for the foreseeable future.

  12. You underestimate the power of PNG by Anonymous Coward · · Score: 2, Informative

    Besides the fact it generally offers better compression, now that we have FULL transparency in IE7, we can start doing some really great things with overlaying images in styles and such. Too bad it'll be like 2012 before IE6 disappears.

  13. [OT] I just want to know why... by leonbrooks · · Score: 3, Funny

    ...when Conan32 spelt "hypocrisy" correctly, and both eraserewind and NanoGator had it right there on their screens to reply to, they both spelt it wrong?

    <thwack!>

    --
    Got time? Spend some of it coding or testing