Slashdot Mirror


What Is The Future of PNG?

miladus writes "The GIF patent (held by Unisys) will expire on June 20. C|Net wonders whether that will also mean that PNG "will lose its original reason for being". Remember Burn All GIFs? " My hope would be that at this point PNG can stand on its own technical merits, rather then on ideological merits.

130 of 609 comments (clear)

  1. PNGs by Gortbusters.org · · Score: 5, Insightful

    Unfortunately even half my coworkers don't know what a PNG is. I try to send them a UML diagram made from DIA and they demand a readable format :(

    --
    --------
    Free your mind.
    1. Re:PNGs by Anonymous Coward · · Score: 5, Interesting

      Out of interest, what the hell sort of software are your idiot coworkers using if they can't load a simple PNG? I can't understand this; every time someone mentions PNG, people always complain that they nobody has heard of it and no application can handle it. What? I use PNG for everything I do. I've never had a problem saving or loading it, unless for some bizare reason I'm using ancient Windows applications that can only handle BMP, TIFF and PCX of all things. I really don't get it!

    2. Re:PNGs by Anonymous Coward · · Score: 2, Interesting

      Unfortunately even half my coworkers don't know what a PNG is.

      This shows my age, but the original use of PNG was persona non grata . Usually that refers to diplomats that have been caught spying, and expelled from the host country (not allowed to arrest the diplomats).

    3. Re:PNGs by Alan+Partridge · · Score: 3, Insightful

      "Call them idiots, but most people could really give a shit about the computer sitting on their desk."

      Try this:

      Call them idiots, but most people couldn't really give a shit about the computer sitting on their desk.

      You see? It actually makes sense now!

      --
      That was classic intercourse!
    4. Re:PNGs by Khazunga · · Score: 3, Informative

      Reasonably modern?! If I recall correctly, IE4 already has PNG support (minus alpha transparency). IE3 won't fit in the "reasonably modern" category anytime soon.

      --
      If at first you don't succeed, skydiving is not for you
    5. Re:PNGs by Verteiron · · Score: 4, Informative

      Yeah, and IE6 has the exact same support. PNG, no alpha transparency. The single most-used browser in the world is the only one lacking the most attractive feature of PNG files. Even IE5 on the MAC has alpha support.

      If PNG fails, I think that the blame for that falls squarely in Microsoft's lap.

      --
      End of lesson. You may press the button.
    6. Re:PNGs by Hugonz · · Score: 2, Funny

      Tell them to open it in MSN Explorer =)

    7. Re:PNGs by ChristTrekker · · Score: 2, Funny

      Send your coworkers the Mozilla installer as an attachment.

    8. Re:PNGs by walt-sjc · · Score: 2, Insightful

      Plenty of commercial environments don't have the resources to update pc's

      Then they shouldn't be using them. These are the people that always get viruses, get backdoors installed on their machines so they are DOS nodes, end up as spam relays, etc. If they can't afford Microsoft crap, then they need to install Linux or some other OS. It really isn't that hard to keep your machines up to date.

      Seriously, I'm damn near ready to support legislation requiring companies to at least show best-faith effort to secure their networks and keep up with security patches. People that don't are a menace to the rest of us.

      Back to the real issue of PNG, if someone can't handle PNG and whines about it, I'd just tell them to upgrade their shit. I don't see any point in coding / working to the lowest ancient common denominator. Doing that restricts you way to much.

      Many web sites whine if you are running a really old browser. People that refuse to upgrade (or are just too lazy) will find fewer and fewer sites that function for them. Big examples of this are many banking sites. On this note however, I think it is important for web site designers to adhear to real standards (not just MS proprietary crap) and make sure they can still support non-graphical browsers such as lynx, or screen-readers for the blind.

      PNG isn't new, and at this point there is no excuse for any software written within the last 4 years not to support it.

    9. Re:PNGs by Anonymous Coward · · Score: 2, Insightful
      Reasonably modern versions of IE do not support png.

      Actually, Microsoft Internet Explorer was among the first browsers to support PNG image formats (infact, Microsoft Internet explorer pages used to brag about it).

      I would also like to point out that while Netscape 4.x was refusing to provide any real support for HTML 4.0 and CSS, the corresponding version of Intetnet Explorer did (this was before people were able to use Mozilla without crashing every second or so). Do you know why? Because, MSIE was trying to make it felt that their browser was better, not just freely given away to kill Netscape (although they were, in reality).

      But it all stopped once they had attained what they wanted, total monopoly over the Internet client side. There hasn't been any significant improvement (other than strapping proprietary crap such as smart tags, more ActiveX crap, winDRM with keep-other-OS-out technology etc.) since MSIE 6.0.

      By the way, I hate IE, and use Mozilla almost exclusively (except when it is shoved down my throat by my School).

    10. Re:PNGs by _Sprocket_ · · Score: 3, Informative


      Yeah, and IE6 has the exact same support. PNG, no alpha transparency. The single most-used browser in the world is the only one lacking the most attractive feature of PNG files.


      Since there seems to be a lot of coding pages for IE anyway, one can help IE out where they can't (or won't) do it themselves.

    11. Re:PNGs by Cromac · · Score: 2, Informative
      I believe IE didn't support it until recently.

      IE had partial support for PNGs in 1997, and improved support in 2001 and 2002.
      http://www.libpng.org/pub/png/pngstatus.html#brows ers

  2. not yet... by 5prite · · Score: 4, Insightful

    until GIF gives us more than Alpha channel with more than 1 bit :)...

    1. Re:not yet... by archen · · Score: 5, Insightful

      That's only sort of correct. A gif can ONLY do transparency. A PNG allows up to 254 levels of partial transparency per channel, and can have multiple channels.

      You want to know what REALLY held PNG back? It was Internet Explorer that STILL doesn't do the transparency right. More eople would start using the format right now if the implementation could do what the spec specifies. You see people all the time finding clever ways to make an image look like it blends into the background - which can be a pain in the ass to line up correctly. Imagine if the images could actually do partial transparency... that would make things easier woudn't it? Oh well, it's still a good lossless algorithm to cart images around with - I use it all the time for personal use and on my website.

    2. Re:not yet... by DragonMagic · · Score: 4, Informative

      IE 6, at least on NT-based systems, even screws up the palettes on PNGs.

      I can save a graphic using RGB 102,0,0 and I would have to change it to RGB 115,0,0 or something similar to match the background color attribute of the HTML page.

      IE is horrendous on PNG graphics, still to this day.

      --

      Human nature is the same everywhere; the modes only are different. -- Earl of Chesterfield
    3. Re:not yet... by mwood · · Score: 2, Insightful

      [partial transparency]

      I'm still trying to figure out why this is considered so important. Pretty, or interesting, yes, but *important*?

    4. Re:not yet... by dtfinch · · Score: 2, Informative

      Microsoft blames Adobe Photoshop for the gamma problems. Photoshop stores the wrong gamma value (according to MS) in the PNG and IE obeys it, while most other browsers ignore gamma.

      Save the PNG's from almost any other image editor and they'll look just fine.

  3. here's hoping. by porter235 · · Score: 3, Insightful

    I am dying for full PNG support in all major browsers... the 256 levels of transparency alone make it worth while!

    1. Re:here's hoping. by questamor · · Score: 3, Insightful

      Same here, and it's pretty close. Most browsers support it in some fashion, and it IS technically superior to GIF format images.

      It's a little like MP3 vs OGG, except PNG is far closer to acceptance in general applications than OGG is for music.

      Curiously, does IE support more than one alpha channel with PNG? last I looked it didn't, but that was a long long time ago; most everything else did at the time

    2. Re:here's hoping. by SirPrize · · Score: 5, Interesting

      I was wondering about this just two or three weeks ago, and tested with Mozilla and IE 6. Both of them can display PNG files, but it's only Mozilla that could render the 256-level alpha channel properly. Made for some very neat effects. IE didn't manage the transparency at all. :-(

    3. Re:here's hoping. by John_Booty · · Score: 4, Informative

      This is such a sore point for me. To me the main raison d'etre for PNG's is that alpha transparency instead of the single-bit transparency that GIF's offer.

      However, IE for Windows supports it *horribly*. If you want to use the alpha transparency feature of PNG's, you've got to jump through a lot of crappy, nonsensical IE-only hoops.

      Here is a rather funny page (since the author's disbelief and anger at IE's horrible behavior is palpable) which does a good job of explaining the issue, and supplying a few workarounds.

      It's a shame that IE is so crappy in this regard (and plenty of others, but that's another discussion)... there's no good reason for it. Apparently IE for Mac supports them just fine, btw... so it's not like Microsoft has some official PNG-hating policy, they just simply got sloppy with IE/Win. Another good example why too much share in a given market (in this case, web browsers for Windows) is a bad thing for competition. Why should they bother improving or fixing IE/Win? What's in it for them?

      --

      OtakuBooty.com: Smart, funny, sexy nerds.
    4. Re:here's hoping. by tbspit · · Score: 2, Interesting

      AFAIK, the PNG format itself allows up to 65536 levels of transparency. It can use 16 bits (65536 levels) for red, 16 bits for green, 16 bits for blue and 16 bits for alpha. But most images use only 8 bits (256 levels) for each channel.

    5. Re:here's hoping. by ostrich2 · · Score: 2, Funny

      Here is a rather funny page (since the author's disbelief and anger at IE's horrible behavior is palpable) which does a good job of explaining the issue, and supplying a few workarounds.

      I will say this for the guy: for a non-native english speaker, he got the expletives working perfectly.

    6. Re:here's hoping. by Pig+Hogger · · Score: 4, Informative
      I was wondering about this just two or three weeks ago, and tested with Mozilla and IE 6. Both of them can display PNG files, but it's only Mozilla that could render the 256-level alpha channel properly. Made for some very neat effects. IE didn't manage the transparency at all. :-(
      You can easily test your browser here.
    7. Re:here's hoping. by Mostly+a+lurker · · Score: 3, Informative
      Results on the browsers I have handy (without reboot)

      Opera 7.11 -- perfect
      Mozilla 1.3.1 -- perfect
      Netscape 7.02 -- perfect
      IE6 SP1 -- totally broken

      No surprises here.

  4. Sure by Anonymous Coward · · Score: 4, Informative

    Because everyone wants 256 color GIFs.

    PNG does everything GIF does, only a million times better.

    1. Re:Sure by $alex_n42 · · Score: 2, Insightful

      Except of course animations, PNG will never do that. Plus IE won't display PNGs correctly, for some stupid reason or other.

    2. Re:Sure by Anonymous Coward · · Score: 2, Insightful

      The stupid reason is IE. Microsoft has never implemented proper PNG support.

    3. Re:Sure by windows · · Score: 4, Insightful

      Well, then you just use MNG if you need animation. And if you read the linked page, MNG is superior to animated GIFs in a number of ways, one of which is better compression. Another advantage to MNG is it's not necessarily tied to one image format. The individual images can be stored in either PNG or JPEG format.

      Personally, I think it's a good thing to have several image formats available with wide support in all browsers. The reason for this is it allows developers to choose which format provides the best results for what they're doing. This means which ones look better and compress better for a certain image. It's definitely a good thing that the patent on GIF is expiring, but it's also a good thing to make sure that PNG doesn't go away, either.

    4. Re:Sure by tbspit · · Score: 3, Insightful

      16,777,216 = 256 * 256 * 256.

      Your calculation:
      GIF : 256 colors
      PNG: 256 * 256 * 256 * 256 (r * g * b * a).
      PNG/GIF = 256 ** 3 = 16,777,216.

      In fact, PNG supports
      65536 * 65536 * 65536 * 65536.
      So, using your line of thought,
      PNG / GIF = 256 ** 7 = 72,057,594,037,927,936.

    5. Re:Sure by archen · · Score: 3, Informative

      Try reducing the color depth on a png to 8bit (or 4). You will usually get a smaller PNG. I'm not sure how it works in photoshop though, because my friend gets larger PNGs than GIFS. In Paintshop Pro (5) it's always the other way around.

    6. Re:Sure by berzerke · · Score: 2, Informative

      ...GIF will result in a smaller file size than PNG.



      The problem is mostly likely you are comparing apples to oranges. Remember that, at best, a gif file only has to store 256 colors. A png file, can store 256(Red)*256(Green)*256(Blue)*256(Alpha) colors. All that extra color info takes up space. If you reduce the png to an indexed palette of 256 colors (or less, depending on the gif palette), THEN compare file sizes, you will find the png smaller.



      In addition, there is a program called pngcrush which is also good at reducing the png file size without hurting quality, although it won't work the same magic (in file size reduction) as reducing the palette.

    7. Re:Sure by asdfasdfasdfasdf · · Score: 2, Funny

      Yes, but people wouldn't get the joke if I put 72,057,594,037,927,936 * better. :-)

  5. i've burned all my gifs by jellybear · · Score: 4, Funny

    to cd

  6. Let's face it by nutznboltz · · Score: 4, Insightful

    You can't get rid of a graphics file format once it's out there.

    1. Re:Let's face it by Surak · · Score: 4, Funny

      I know. I even see ANSI graphics now and then. ;)

    2. Re:Let's face it by sharkey · · Score: 2, Funny
      I even see ANSI graphics now and then. ;)

      Case in point.

      --

      --
      "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
  7. GIF and PNG are completely different! by flend · · Score: 5, Informative

    GIFs are limited to 8-bit colour depth, no alpha layer etc. etc. PNG is a standardised, open format with support for lossless encoding of full colour graphics with transparencies.

    Saying that GIF becoming patent unencumbered is going to reduce use of PNG is like implying that when the original patents ran out on horses & carriages people gave up their cars and reverted. Ain't gonna happen :)

    1. Re:GIF and PNG are completely different! by Horny+Smurf · · Score: 4, Interesting
      Slashdot uses gifs. In fact, it seems more likely for the janitors to spell-check than it does for them to convert to png.

    2. Re:GIF and PNG are completely different! by scrawny · · Score: 5, Informative

      The mistaken belief that GIF has a limit of 256 colors probably comes from the way GIF was first used when it came out. In the late 1980's, PC video cards generally supported no more than 256 colors. Image exchanges were becoming popular among BBS systems and the Internet and viewer programs were quickly produced. No one tried or needed to generate images with more than 256 colors since they could not be viewed on anything less than high priced graphics workstations. Programs that converted images to GIF worked up a number of methods to reduce the number of colors to 256 or fewer. Some actually did a very good job. GIF files were constructed with just a single image block, even though the GIF standard placed no limit on the number of blocks. Since there was no use for more than 256 colors, there was no use for more than one image block. This practice became effectively ingrained into the computer culture and eventually everyone "knew" that GIF supported no more than 256 colors. The fact is, the programs that generated GIF files supported no more than one image block, and thus didn't have a means to deal with more than 256 colors. The top image shows that a GIF file really can have more than 256 colors.

      this info and more (including full color GIF) from here.

    3. Re:GIF and PNG are completely different! by boa13 · · Score: 3, Insightful

      The mistaken belief that GIF has a limit of 256 colors probably comes from the way GIF was first used when it came out.

      Err, I would say this belief comes from someplace else, like... the GIF specification. GIF has been designed for 256 colors, as the Global Color Table and Local Color Table (which are made a of power-of-two number of entries limited to 256) clearly show.

      The site you mention is the homepage for a hack. Yes, a clever dude can create GIFs that look like they have more than 256 colors... but the fact is, such a GIF is made of many 256-colors images. Totally inefficient, compared to PNG, as the author of the hack admits, at the bottom of his page.

      That said, there's another well-known GIF hack, which also uses several images per GIF: animated GIF. Let's not forget that, as the spec says, The Graphics Interchange Format is not intended as a platform for animation, even though it can be done in a limited way.

      So, let's hope the nightmare doesn't come true, and that horrible multi-image true-color true-Bad GIFs begin to be popular.

      PNG is better than GIF in every technical aspect.

      GIF Spec: here

  8. PNG is good by Junior+J.+Junior+III · · Score: 3, Informative

    I don't know why more people don't use PNG. It's a great format. For photorealistic images JPG is best, but for logos or other types of graphics and drawings, PNG is great. I hope that we start seeing widespread use of vector-based graphics in the near future, though.

    --
    You see? You see? Your stupid minds! Stupid! Stupid!
    1. Re:PNG is good by tanveer1979 · · Score: 2, Insightful
      GIF's were already in use from a long time. Even the patents didn't scare ppl because unisys hasnt been relentless in pursuing them.

      So people kept on using GIF's. And very few people used PNG. There is a popular saying "Its not what its worth, its how it is marketed"

      --
      My Aurora : http://www.youtube.com/watch?v=o91ZsGwJYyg
      FB : https://www.facebook.com/TanveersPhotography
    2. Re:PNG is good by cybermace5 · · Score: 2, Informative

      JPG is great as long as it's a visibly separate page element, and you don't use them for anything requiring color matching. A lossless format is absolutely required when you need the image to blend with text or page backgrounds. JPEG compression usually skews the color one way or another, and not all rendering engines do it the same way.

      That said, it's much easier to use contrasting colors for page elements and backgrounds. PNG transparency would be great for blending in as long as you don't need a razor sharp edge. Lossy images are great for reducing load times. JPEG with transparency would eliminate the need for lossless images in many cases....

      I'm not a web developer, so don't stone me if I said something wrong.

      --
      ...
  9. Beta was better than VHS by vasqzr · · Score: 4, Insightful


    Just because PNG is 'better' than GIF, doesn't mean it'll win.

    GIF has such a huge head start...

  10. Its already moribund by Lysander+Luddite · · Score: 5, Insightful

    Until IE fully supports the format, it might as well be dead. Nobody who wants the Alpha Channel support can use it in IE6 so it pretty much just sits there, an unused option.

    Since IE apparently won't be getting an update until the next version of Windows, I don't see much changing.

    It also doesn't help that creating PNGs with Alpha Channels isn't as easy as it can be in some apps.

    1. Re:Its already moribund by drfireman · · Score: 2, Interesting

      Worse yet, you can't just wait for IE to support it, you have to wait for the versions of IE used by everyone you want to visit your web pages to support it. If you want to support the oldest browsers (I don't, but some folks do), you'll never be able to use PNGs.

      As an aside, many have pointed out that comparing PNGs to GIFs doesn't make a lot of technical sense. But it makes a lot of practical sense to anyone who has a web site. If you want to put up some images, you have limited choices. There are no options that are lossless, unencumbered, compressed, and supported by both old and new browsers. Depending on which of those you're willing to cave on, you may choose PNGs, GIFs, or JPEGs.

    2. Re:Its already moribund by barcodez · · Score: 5, Informative

      Apple's Quicktime can become the default plug in for PNGs and display them instead of IE within IE. Therefore full advantage can be made of Alpha channels. Obviously not everyone has QuickTime installed.

      --

      ----
    3. Re:Its already moribund by oever · · Score: 2, Insightful

      The point of an alpha layer in an image on a webpage is that the background of the webpage is visible through the image. A plugin usually does not inherit the background of a webpage, but is often gray, so using a plugin for showing png images with alpha layers will give you the desired effect.

      --
      DNA is the ultimate spaghetti code.
  11. no animation support, but... by Kegetys · · Score: 3, Insightful

    Only thing GIF has what PNG does not is animation support... PNG wins in everything else. And most of the GIF animations I have seen do nothing else than annoy so i'm not sure if the lack of it in PNG is a good or bad thing after all.

    1. Re:no animation support, but... by jpr1nd · · Score: 2, Informative

      actually there is a 'partner'-like format to png called mng or multiple-image network graphics. i'm not too sure of how well supported it is but it does in fact exist.

      voila: http://www.libpng.org/pub/mng/

  12. PNG has more features by Max+Romantschuk · · Score: 4, Interesting

    PNG is not just an alternative to GIF. PNG has things like Alpha Blending, Gamma Correction and Huge color depth (up to 48 bits, I believe).

    So you can really do a lot of cool things with PNG that you can't do with GIF's.

    The problem is that without browser support this is like having a CD library in the 70s... Useless. And as long as browsers don't handle PNG's properly it's also chicken & egg problem.

    I hate to say it, but we're pretty much at Microsoft's mercy with mainstream PNG usage.

    --
    .: Max Romantschuk :: http://max.romantschuk.fi/
  13. I will still not use GIF by foolip · · Score: 2, Interesting

    Patented or not, GIF is an antiquated compression algorithm which performs quite poorly compared to PNG. There is descent browser support for PNG, and it can also do some nifty things which GIF cannot -- most importantly alpha transparency as opposed to binary transparency.

    It seems most people just don't care enough to use PNG though, so I wouldn't expect it to take over the net very soon.

  14. Just removed all the GIF's from my project, rats! by @madeus · · Score: 2, Interesting

    At the weekend I removed all the GIF's from my project and replaced them with PNG's, because I'd had a submission (understadably) rejected to savannah.gnu.org because of this issue.

    I'd only been using GIF's because my project outputs web pages and uses transparent images to render a nice customisable user interface (e.g. tabs) in a way that can only be achived with transparent images - and realistically most people use IE and it has problems with PNG transparency that would require me to use lots of VB scripting in IE just to get IE to behave in the manner I wanted.

    Does this mean free GNU projects will be able to use GIF's, or are there still other parent related issues with GIF images?

  15. Technical Merits... by Jasin+Natael · · Score: 4, Insightful

    My hope would be that at this point PNG can stand on its own technical merits, rather then on ideological merits.
    It certainly does for me. PNG tends to display colors more accurately than GIF, has cleaner dithering, and has much better transparency than GIF. It also generates smaller files for complex/large images. But, Internet Explorer once again holds us back. IE doesn't do transparency AT ALL for PNG images. It doesn't even use the page color, or white, just a flat 50% gray. Once IE supports PNG properly, a lot more web developers will feel comfortable using it. Curse you and your "standards", Microsoft.

    Jasin Natael

    --
    True science means that when you re-evaluate the evidence, you re-evaluate your faith.
    1. Re:Technical Merits... by Etyenne · · Score: 2, Informative

      IE doesn't do transparency AT ALL for PNG images.

      No. It understand full-transparency in indexed mode (this is not using the alpha channel). This functionnally the equivalent of GIF. IE throw away the alpha channel entirely, but one of the color in indexed mode can be defined as transparent.

      In The Gimp, right-click, "Image", "Mode", "Indexed ..." get you the menu to make your image indexed.

      But it is true that IE hold us back. Full alpha channel support would do a lot for Web site aesthetic.

      --
      :wq
    2. Re:Technical Merits... by radish · · Score: 4, Insightful

      That works great for "My First Homepage", but it falls flat on it's face for commercial sites. I can't imagine trying to explain to my business sponsors (who pay my wages) that the reason our site looks crappy to 99% of our clients is that we're using a better image format. I may as well just fire myself...

      Whilst I agree with you completely in a technical sense (and in an ideal world), you can't lose site of the practicalities - people are not going to switch browser just to view our site - they'll just go somewhere else. It is essential that our site looks how it is supposed to look to the vast majority of clients, and that, alas, means IE5+.

      --

      ---- Den ene knappen er powerknapp, den andre er Bender voice knapp "Bite My Shiny Metal Ass"

    3. Re:Technical Merits... by visualight · · Score: 2, Insightful

      Man there's a lot of posts like this.

      Commercial websites get a lot of hits. But there are far, far more websites that are not commercial and I think it's those sites that collectively get the most traffic even if individually they each receive only a few hits. The power to change and influence is not just in the hands of commercial websites largely because it's the commercial websites that are the least interesting. Hmmm, what I'm trying to say is while BestBuy.com gets more hits than your MyFirstHomepage, BestBuy.com gets fewer hits than all of the MyFirstHomepages combined. I'm using your term but I'm including all of the MySecond, MyThird, MyFourth, and MyFifthHomepages too.

      Please continue to use GIF's for your corporate splash page if you feel you should. But also consider using PNG's on any sites that you produce for yourself.

      --
      Samsung took back my unlocked bootloader because Google wants me to rent movies. They're both evil.
  16. PNG will stick by sklib · · Score: 4, Informative

    IIRC, GIF really specialized in 256-color paletted images, and any extensions to that along the lines of full 32-bit color were kind of a hack, and were never very popular. PNG, on the other hand, is a great compressed lossless format that seems to cleanly support 4 channels. I've used it plenty when storing graphics for programming purposes, and have never had any kind of problems.

    It seems that the only reason GIF was around in the first place is because computers were slow, and then later (instead of lossy jpegs) for displaying little images with text in them in web pages. Since PNG does that now and does it better, I think there's no reason to ever go back to GIF.

    Sure, the readers and writers might now be legally free or whatever, but anyone who really wanted to use GIFs has been able to do it anyway (it's not like all along Photoshop wasn't able to export, and Explorer and Netscape weren't able to view them), and there is support for better formats pretty much everywhere now, that I don't foresee any changes in the status quo regarding GIF use.

    --
    -S
  17. Animated PNG by emo+boy · · Score: 2, Interesting

    What about the animation that gifs bring to the web? I know that no one was using the animated functionality of a gif back when the PNG specs were being drawn up but I think it's time to look back into it. It at least give users an alternative to Macromedia Flash especially whilst using GIMP.
    Long live open source

    1. Re:Animated PNG by sklib · · Score: 2, Interesting

      Anyone who wants to have rotating skulls and burning fire on their script kiddie web page is still welcome to use animated gifs. I don't see a reason that all those graphics shouldn't be in Flash, because they are great for platforms that can handle it, and don't need to be shown at all (say, on a celphone or PDA) on those that can't.

      Besides, mpeg-2 and mpeg-4 are certainly better at this sort of thing, and since pretty much anything that supports Flash can also display avi's or qt's or whatever, I think people should just use that instead.

      --
      -S
    2. Re:Animated PNG by jpr1nd · · Score: 2, Informative

      if you look up the page a little you'll see several posts about animated pngs, called mngs

      more info: http://www.libpng.org/pub/mng/

  18. Wrong! by brennanw · · Score: 5, Informative

    If you're getting larger file sizes with PNG, then you're using a program that creates PNG poorly.

    When I converted all the graphics on my site over from GIF to PNG, I saved bandwidth. If I did my comic in GIF instead of PNG, the graphics would be much larger than they are now.

    use pngcrush or some other kind of tool to optimize them if your stuck using an older version of Photoshop (some versions of photoshop have lousy PNG support) or get some shareware or free software program that supports PNG properly.

    JPEGS will still be better for 24 bit color images, but with the right program PNGs will beat out GIFs.

    --
    Eviscerati.Org: All Hail the Eviscerati
    1. Re:Wrong! by afidel · · Score: 3, Informative

      All 3 of the graphics programs I use routinely creat PNG's that are larger than gif's, now this may not be a problem with the format persee, but it is a problem with the real world implementations that are out there and are being used. It doesn't matter for a hill of beans how cool a format is on paper if the implementations suck, if the graphics programs are creating bloated PNG's and the large leader in the web browser space renders them incorrectly it is unlikely that there will be a rush to adopt the format. Like I said I understand that it is a superior format for some things but for most people there just isn't much incentive to switch.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    2. Re:Wrong! by larien · · Score: 3, Interesting
      What colour depth are you saving PNGs as? If you're saving them as anything more than 8-bit, it's very likely that they'll be larger than GIFs.

      As for IE not working, that's IE's fault and if we pussyfoot around a sucky implementation, we'll be stuck with substandard images. If we use enough PNGs on web sites and tell people that any rendering problem is IE's fault we'll hopefully either (a) encourage the use of non-IE browsers (e.g. Opera or Mozilla) or (b) force MS to fix IE.

    3. Re:Wrong! by rknop · · Score: 5, Informative

      All 3 of the graphics programs I use routinely creat PNG's that are larger than gif's, now this may not be a problem with the format persee, but it is a problem with the real world implementations that are out there and are being used.

      You should consider another possibility: you don't know what you're doing.

      Do you know the difference between a 24-bit true color and an 8-bit palette image? (This is not an insult or rhetorical question, it's a real question-- you may.) Many image processors and paint programs work naturally in 24-bits. If you save to PNG, they will then naturally save those images in 24-bit format. To save to GIF, though, they must first be converted to 8-bit palette format. With (for example) the Gimp, you have to do this explicitly, so you'll know you're doing it. However, it's possible that some paint programs may do it automatically, without telling you it's been done. This will make for smaller files, but information has been lost. When you read it back in, you will only have 246 different colors in the image, regardless of how many where there originally. If you read the PNG back in, the image will be exactly as you saved it. (Unless you had all sorts of complicated layers, in which case you need an even heavier file format.)

      PNG can save images in 8-bit format, in which case a good implementation will give you an image about the same size or a bit smaller than a GIF image. But they don't have to. GIF images have to be saved that way. Naturally, saving an image in 24-bit format will create a larger file than saving one in 8-bit format. (And, it may be different by more than a factor of 3, for reasons having to do with the compression algorithm.)

      Before comparing the merits of image formats looking just at the file sizes saved, you have to make sure you understand what is being saved.

      JPG is a whole 'nuther ball of wax. That's a 24-bit image format, but it's lossy. That's why they can be so small. But, again, if you read the image back in, it won't be exactly the same; some colors will have been modified slightly. (How much depends on the quality setting you used when saving the JPEG image.) If you're expecting to read and write an image repeatedly, JPEG is a bad format to use, as each time you read and write it, more information gets lost. In that case, you're much better off using PNG images.

      -Rob

    4. Re:Wrong! by Azghoul · · Score: 3, Informative

      Oh come on now. "As a web designer". You can replace your GIFs with PNGs lacking alpha any time you want. They look FINE on IE.

      Try out http://www.hazardmaps.gov. No GIFs in sight/site (well, maybe some in the legend area).

      You're just lazy if you use GIFs.

  19. what GIF leads PNG... by 5prite · · Score: 2, Informative

    GIF supports animation, but it is not supported in PNG.

    I know with MNG, you can do animation plus all advantages of PNG. However in reality, not many people are using MNG yet, which make the support for MNG almost non-existant (even our favorite browser has removed support for MNG due to resignation of its maintainer, at least for now)

    we still have many things to do to evangeliszed the use of MNG (imagine p0rn ad with full alpha transparency! sigh...) before we can get a full-blown replacement for GIF. Remember newbies will definitely say: `Wow! GIF does animation but PNG does not, PNG is a crap.' Regardless whether GIF has LZW patent or not.

  20. Re:problems with PNG by aziraphale · · Score: 4, Insightful

    large file size versus GIF or JPEG? Hardly. Take a 24 bit RGB image as your source, and find the format that provides the best reproduction of the original image in the least amount of space. PNG wins hands down. GIF can't reproduce the colour depth, JPEG can't reproduce the original pixels reliably without balloning the file size way beyond the PNG.

    PNG is actually about the best lossless image format out there - better compression than TIFF LZW, and just as flexible.

  21. You mean the US patent expires by Albanach · · Score: 4, Informative
    Unisys claim to have a whole host of patents around the world covering the LZW technology.

    You may wish to look at this thread on comp.compression

    Just as we in Europe are often affected by US patents, even thought he patent itself isn't valid here, now might be your turn to be affected by patents outside your jurisdiction.

  22. A minor 'hack' get's fuPNG to work in IE though... by Anonymous Coward · · Score: 5, Informative

    I have an include file tricking the transparancy into working here , but this geezer has done it a more elegant way...

    Until IE gets a major update it's the only way to ensure that your PNG stuff works cross-browser. And with PNG's superior colour depth and transpancy there really is no reason to NOT at least toy with using PNG's a little any more...

  23. Except, of course... by Gordonjcp · · Score: 5, Informative

    MNG files, which are animated PNGs.

    1. Re:Except, of course... by John_Booty · · Score: 4, Interesting

      I don't know about other browsers, but MNG support has been dropped from Mozilla in recent builds. Apparently the MNG library was quite large (apparently just a few hundred k, though...), and rarely-used, so it was dropped as part of a bloat-reduction effort. Can't say I agree with them. More discussion can be found over at the mozillazine.org forums.

      --

      OtakuBooty.com: Smart, funny, sexy nerds.
    2. Re:Except, of course... by Sheriff+Fatman · · Score: 4, Informative

      Much as I feel the same, I don't think that's quite true. Surely there are some cases where it's appropriate to use a light-weight animation and something like .mpg would be overkill.

      Agreed. Animated GIFs can be very useful - it's just that 99% of sites seem to use them purely for advertising and obnoxious eye candy.

      The best use of an animated GIF I've seen is at : http://www.ibanez.co.jp/world/guitar/uv_jem/pages/ uv777p.html - the little animation of the selector switch and pickups at the bottom is a fantastic way of conveying a large amount of information in a very small space.

      --
      -- Open Source: It's mad, but you don't have to work here to help.
    3. Re:Except, of course... by HTH+NE1 · · Score: 2, Informative

      An animation would play once, then hang or crash the browser.

      If only GIF support were this bad in major browsers! We could get rid of that accursed animated GIF altogether.

      GIF support was this bad. Maybe you weren't on the net when Netscape 2.0 debuted, but that was when animated GIF support was first introduced (the files still bear the mark in their application control block) along with frames. The combination of animated GIFs and frames was often fatal to the browser, causing major memory leaks and crashes. (And you didn't have the kind of control available today to prevent another site from framing yours.) Before animated GIFs, you had to keep the connection open and use the server-push method to animate images on a browser.

      Netscape toughed it out then to make animated GIFs work (and, alas, frames per their design). There just isn't that impetus to make it work again for MNG.

      --
      Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
  24. Re:problems with PNG by lowmagnet · · Score: 2, Insightful

    It's not poor standardization. It's Microsoft not supporting 100% of the standard. PNG is standardized just fine, thanks.

    --
    Heute die Welt, morgen das Sonnensystem!
  25. Part of why PNG hasn't been a big hit by jht · · Score: 5, Insightful

    GIF and JPG each do something quite well. GIF is well-suited for the rendering of static elements with a relatively small palette, like webpage design elements. It doesn't support photo-realistic images, but that's OK - a GIF can make a very small, efficient file that can load quickly. And it's been supported since the earliest days of the Internet.

    JPG compliments GIF by providing a way to display high-quality photo images, and you can control the size of the rendered file by deciding how much you're willing to discard. Again, it's supported by every editor and browser, and it's been around since the beginnning.

    PNG is a superior format to GIF from a technical perspective, and it's not encumbered by the LZW patent. However, from the perspective of most mainstream users, it doesn't solve a problem that actually affects them (they don't know or care about the Unisys patent issue), it isn't perfectly supported by all mainstream browsers and servers in use today, and it's a johnnie-come-lately to the standards wars.

    Like it or not (I think it kinda sucks), most web developers seem to do things one of three ways: if they need small static elements they use GIF, for photos they use JPG, and if they need fancy-schmancy stuff they use Flash. And nobody worries whether or not platforms other than Windows with the latest IE can render their site, anyway. So maybe PNG will slowly become more common - it is a better format for the most part than GIF is, and pretty much all current browsers and servers (going forward - not some of the older versions that are still in use) support it pretty well out of the box. Really, what matters most is the bottom line (especially once the LZW patent is dead) - can PNG produce a better browsing experience for a site's users? If it can, it'll get used. If not, then it's dead.

    --
    -- Josh Turiel
    "2. Do not eat iPod Shuffle."
    1. Re:Part of why PNG hasn't been a big hit by Hangtime · · Score: 2, Insightful

      It's dead meat.

      One thing I hear in here this morning is that its unencumbered and lossless compression format. Yes the format will stick around just because somebody will use it for something. However, I don't need a lossless format that often (if ever) on the web. People aren't downloading your image and sending it to others and your probably not going any further then two-three generations when your working on your website. Finally, size matters ladies! I am not going to clutter up a webpage with a 45K file when JPG and GIF can do it 15K or BETTER! I know because its lossless, however, as I have demonstrated I don't need a lossless format to keep a website maintained because I probably have the original artwork in Adobe Photoshop or TIF format and just save it down to JPEG when I am ready to update the website.

      So in conclusion, are we ever going to see PNG as a widespread use format...no. The only problem it solved was one of not using GIF and come 11 days from now, its primary reason for existence will be gone.

  26. Spelling 101 by Icephreak1 · · Score: 2, Informative

    My hope would be that at this point PNG can stand on its own technical merits, rather then on ideological merits

    The word is "than", not "then". And while I'm here, it's "definitely", not "definately", "your" is not a substitute for "you are" and vice versa, and we certainly don't make plurals of words by tacking on an apostrophe followed by an S. We also don't use the word "where" in place of "were". We also spell "you" fully rather than using "U", and we should read more.

    - IP

  27. And that's what MNG is for by J_DarkElf · · Score: 3, Informative

    Of course MNG has even less support than PNG, but thanks to Jason Summer's MNG plugin anyone using a Netscape-plugin-compatible user agent or IE can see them.

  28. Choosy mothers choose GIF! by Anonymous Coward · · Score: 3, Funny
    Not PNG.

    ~~~

    1. Re:Choosy mothers choose GIF! by fgb · · Score: 2, Funny

      Beware of geeks bearing GIFs!

  29. It's all about consumers. by Vandil+X · · Score: 5, Interesting

    Back in the day, JPGs were known for better compression, but with graphical loss. GIFs were known for preserving appearance, but with less compression than JPG.

    Then PNG comes in...
    - Open Source/Open Standard: cool
    - Lots of options of graphic artists: cool
    - even less compression: suckage, but whatever, people who really care about their net experience these days have broadband

    PNG may be superior, but it suffers from being obscure and being too technically oriented. I remember when Animated GIFs were tough to create without a "wizard". I seriously doubt your average consumer will care about the added layers and alpha "stuff" that's supported by the PNG format.

    Kind of like how Firebird may be technically superior to, say, Internet Explorer, but very few people know of Firebird, and few among those who do know about it would know how to use all its features. IE just "works" for them.

    PNG rocks, but until the likes of many Photo CD "developing" companies and other consumer-oriented image business start using the PNG format, people will still only know a world of GIFs, JPGs, and BMPs.

    --
    Up, Up, Down, Down, Left, Right, Left, Right, B, A, START
  30. The unfortunate truth by bahamat · · Score: 4, Insightful

    is that PNG will never see large scale use until all of it's features are supported in IE. I would love to use PNG for everything, except that they look like hell in IE. And as much as I badger people about using Mozilla, they don't.

    GIF does have full support in IE, and nobody seems to know that the patent even exists. Even those that do rarely care enough to even tell one person.

    This is the truth and it sucks. PNG, better in every way, suffers for it.

  31. ought to be enough by gylle · · Score: 5, Funny

    One bit, that ought to be enough for anybody... :-)

  32. PNGs will always be larger than GIFs... by J_DarkElf · · Score: 5, Informative

    ... if saved as truecolour images. What really killed PNG, imnsho, was that the first graphics programs that implemented it simply did not allow users to create indexed PNG files. An 8-bit PNG image is smaller than an 8-bit GIF.

    What many people also seem to forget, is that there is no excuse not to safe your PNG image with maximum compression once you are done editing: there will be no image quality loss.

    And of course anyone seriously creating PNG images cannot do without PNGCrush, which can shave off every single bit of bloat. A crushed PNG image will look just as good as the original, but will be only a fraction of its size, and will be a lot smaller than a GIF would (1).

    1: But not smaller than the JPEG. Lossless compression cannot compete with JPEG's lossy compression, and JPEG is still the format of choice for photographic images. For everything else you can and should use PNG.

    1. Re:PNGs will always be larger than GIFs... by LionMage · · Score: 3, Informative
      What really killed PNG, imnsho, was that the first graphics programs that implemented it simply did not allow users to create indexed PNG files.

      Ummm, where did you get your information from? I'm one of the PNG spec co-authors, although my involvement with the project tapered off years ago, and I wrote one of the first commercial implementations of PNG. You may have heard of a company called MasterSoft that used to produce document and graphic conversion utilities. When we were acquired by Frame, and then Frame was acquired by Adobe, our products got released for a while as "Adobe File Utilities by MasterSoft." Quite a mouthfull, but accurate.

      My PNG writing code handled indexed (palette based) and truecolor images equally well, and preserved whatever format/color depth was suggested by the original image. As I understand it, my code made its way into several products later on, although it was probably changed.

      One of the utilities that came out early on was a small freeware/open source program designed to take GIF files and convert them to PNG. One of the other spec authors cooked that one up, and it worked very well. It created indexed PNG images by default.

      While it's true that the PNG spec doesn't exactly demand that you write an indexed color image when the source data is best represented with indexed color, my early survey of PNG-supporting applications seemed to suggest to me that most PNG writing code out there generated good indexed color PNG images. So I'm not sure where this notion came from that the first programs to implement PNG didn't write indexed color. That doesn't jive with my experience.

      I have noticed that some applications will generate truecolor PNG images unless you force your application to use indexed color, or downconvert from 24-bit color to indexed color. That's a function of the application software (usually image editing software) not second-guessing the intent of the user. If you've got your application set to do all editing in a 24-bit RGB color space (and some applications will promote loaded images to 24-bit RGB regardless of the pixel format of the original image), don't be surprised when you go to save as PNG and the resulting file contains 24-bit RGB pixels. Downconvert to an indexed color palette before saving. Some application software supports downconversion to indexed color during the save process.
  33. Animated PNGs? by Rik+Sweeney · · Score: 2, Redundant

    Does such a thing exist? Will it ever exist?

    The way I see it, if I have an image and it's only 8 bit I'll use a GIF, otherwise I'll use a JPG, unless it contains text that needs to be readable in which case I'll use PNG.

    Simple rule of thumb?

  34. Re:problems with PNG by LiquidCoooled · · Score: 2, Interesting

    GIF is not a lossy format, but it is restricted to 8bit. Every pixel is stored uniquely. Jpeg on the other hand will lose intricate details on an image, leading to an approximation of the original.

    Take a gif image and save it as jpeg and you will see what I mean.

    I Like PNG images because they are lossless - a major boon with artwork. Our entire intranet is constructed using PNG, and during the rollout we've setup a script to convert the images and links back down to JPEG for speed. This allows modifications to the artwork without the repeated degregation seen when saving jpeg images multiple times.

    --
    liqbase :: faster than paper
  35. PNG is an in-use MS Office format by DrSkwid · · Score: 4, Insightful

    PNG is used as part of MS Office Documents for their binary picture data, so one suspects that making it work in IE will make more things break elsewhere.

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  36. Re:Wonder how php will act to this by boutell · · Score: 2, Informative
    I'm looking into it. The problem is that the GIF patent may apparently still be in effect in some countries for one more year. There is also apparently an IBM patent that may be relevant, although IBM has shown no indications of and has no motive to cause grief for open source projects -- indeed, quite the opposite.

    I do recognize that GIF support would still be a useful thing to have for a lot of people out there and I'll bring it back if I can do that without putting my company in front of the firing squad, legally speaking.

    If I am able to bring it back, I'll no doubt throw in some support for animation, as that's probably the best reason to use GIF at this point. There are neat alternatives though; check out the Ming library, which creates valid Flash animations that the vast majority of browsers can view. (Ming is not Ming32; two very different tools.)

    --
    Check out the Apostrophe open-source CMS: http://www.apostrophenow.com/
  37. What is the future of PNG? by FrostedWheat · · Score: 3, Funny

    What is the future of PNG?

    PONG

  38. Size by Duncan3 · · Score: 2, Insightful

    libGIF - ~800 lines of code, old as dirt, fast as hell.

    vs.

    libPNG+zlib+libMNG - ~1.4 MB of compressed unfinished stuff, age and speed low.

    Yea, sign me up!

    Seriously, anyone still wondering why it's not built into IE when GIF and JPEG and TIFF work so great is just oblivious. Yes, it's awesome, features galore, does things nothing... er.. few... er.. not too many other things already do very well.

    Face it, the patent was the whole point. Read the PNG page, the first 3 paragraphs start with "We are better then TIFF because we have less features" and end with "but you're much better off using JPEG and TIFF for most things"...

    --
    - Adam L. Beberg - The Cosm Project - http://www.mithral.com/
  39. another release of xv? by pomakis · · Score: 2, Interesting
    The GIF patent (held by Unisys) will expire on June 20.

    Does this mean we might actually see another release of xv? John Bradley has been holding off on a new release for years because of the GIF patent issue. Ironically, perhaps the best feature that'll be in the new release will be built-in PNG support (as apposed to having to download a patch or a patched copy of xv to get this).

  40. Are there animated PNGs yet? by Trolling4Dollars · · Score: 2, Informative

    As far as I can tell, GIF still has that one leg up on PNG. I haven't seen any version of PNG that can do animations and that is supported within a browser. Ideally, I'd still like to see an open source alternative to Flash that would allow one to create animations with synchronized sound. Oh well... I'm part way through my C++ book now. :)

  41. OT: GIF patch for GD by vrai · · Score: 2, Insightful
    This site, http://www.rime.com.au/gd/, has the patches needed to build a GIF compatible version of GD.

    Obviously if you are in a country where the Unisys LZW patent is valid this is illegal, but in eleven days time who's going to care?

  42. Damn Microsoft anyway. by Millennium · · Score: 5, Insightful

    I wonder if Microsoft's halfhearted support of PNG is deliberate. To be honest, it probably is, in an attempt to undermine open standards.

    Ahem. Anyway, PNG is a format which would be superior to GIF in every aspect. Just a few problems...

    1) Photoshop's PNG support sucks. It is entirely due to Photoshop that we have this insipid misconception that PNG is larger than GIF; if Photoshop would only compress PNG's decently, people would realize that this is false. Because unfortunately, most people are too lazy to use an optimizer along the lines of pngcrush.

    2) IE/Windows' PNG support is awful. As I said, I believe that this is deliberate on Microsoft's part, given that they already have good PNG-handling code (in their AlphaImageLoader filter) and they simply refuse to use it as their default. Now, it is possible to use JavaScript -the scourge of the Net normally, but this is one of those points where it can be genuinely useful- to make IE apply the AlphaImageLoader filter to PNG images, but no one's managed to make a complete drop-in replacement that will apply to all PNG images im a page yet. It can be done, but it hasn't been done yet.

    3) MNG support is nonexistent. Even Mozilla, the only browser which ever supported MNG, has removed it. This is a great shame.

    Now, in the meantime, there actually is one use for images which PNG is ideally suited for, and where the transparency problems of IE/Win are not an issue: screenshots. The compression is good enough that particularly when dealing with computer-generated images, the file size isn't that much greater than JPEG, but there is no loss in image quality, which is especially important when grabbing screenshots of games or video. Screenshots are not transparent, as a rule, so IE/Windows has no problems. Unfortunately, it seems that this use of PNG has yet to be discovered by the mainstream.

    PNG may also be good for certain types of wallpapeers, such as most computer-generated graphics or hand-drawn animation. Colors in these generally aren't as complex as they are in photographs, and the lossless compression of PNG works well under those conditions. Combine this with the fact that JPEG (the current de facto standard for wallpapers) has an inexplicable and yet undeniable hatred for the color red, and you have something which can better preserve these types of images. Worth considering, anyway.

  43. Maybe it'll become mainstream someday by Furan · · Score: 2, Funny

    Howard Stern was complaining that he couldn't open PNG files this morning.. "Why can't I get a bitmap or a JPEG?"

  44. Re:On the other hand... by doug363 · · Score: 3, Informative
    Mozilla even has MNG support natively.

    Sorry to point this out, but Mozilla just recently dropped its MNG support from the trunk until it's a bit more mature and MNG is more accepted.

  45. Slashdot by Mr_Silver · · Score: 5, Interesting
    Maybe the answer to whether it will fail or not lies in possibly the largest geek site on the web?

    wget http://www.slashdot.org
    14:12:33 (30.08 KB/s) - `index.html' saved [39023]
    grep -i "\.png" index.html | wc -l
    0
    grep -i "\.gif" index.html | wc -l
    32

    Food for thought.

    --
    Avantslash - View Slashdot cleanly on your mobile phone.
    1. Re:Slashdot by mkettler · · Score: 2, Insightful

      Agreed, it seems highly unusual, if not hypocritical, to "hope that png succeeds" against the gif format and yet use the .gif graphic format on ones own site.

      Taco, Hemos, etc, the PNG format won't succeed if people don't USE it. If it is truly and honestly your intention to support the PNG format over the gif format, then put your graphics where your mouth is. In the interim, your well wishes might be in the right place, but will do little or no good in the absence of action.

      --
      -Matt
  46. Another angle on PNG support by FooMasterZero · · Score: 2, Insightful
    Strangely enough i haven't seen this mentioned yet, I would say that PNG has enough support that it is unlikely it will die. I will also say that i am not going to focus on the technical merit contest either, but rather another way people use PNG as i see it.

    I say this for 2 fairly good reasons. You can still view PNGs in all major browsers, it really just depends on what kinds of images you are making that will depend on how *good* they look. So if you stick to fairly simple images, a facet for which GIF is/was good for, PNG still is equal among browsers.

    Secondly, I feel that PNG has a good foothold is in software development. Programs using some form of libpng seem to use the PNG images very well regardless of how simple or complex they may be. I have seen many a program using PNG for the application e.g. KDE and its childeren. I know I use PNG icons in my applications whenever possible. The two main venues in which i code in support PNG well enough to make my icons look good on screen.

    A side note Java (JDK 1.2+) and Carbon support the use of PNG even though Carbon really tries to push tiff's. I do not understand any technical merits of tiff, however i don't like using them because they always seem to be so huge.

  47. Re:problems with PNG by Fweeky · · Score: 5, Informative
    large file size- much larger than gif or jpg

    Not really. Some encoders are pretty poor, but an 8 bit PNG can easily rival, if not beat it's gif counterpart.

    Let's pick a quick example:
    -rw-r--r-- 1 freaky None 27382 Jun 9 10:12 states_imgmap.gif
    -rw-r--r-- 1 freaky None 23176 Jun 9 13:28 states_imgmap.png
    -rw-r--r-- 1 freaky None 22619 Jun 9 13:29 states_imgmap_pngcrush.png
    -rw-r--r-- 1 freaky None 21404 Jun 9 13:31 states_imgmap_pngout.png
    The .png is saved from Paint Shop Pro 7, _pngcrush.png using bog-standard pngcrush (which was, btw, identical to pngcrush -brute), , and _pngout.png using pngout.

    If you think this is too simple an image, let's try a screengrab of my desktop, reduced to 256 colours. Feeling lucky?
    -rw-r--r-- 1 freaky None 342508 May 31 02:22 grab_orig.png
    -rw-r--r-- 1 freaky None 136461 Jun 9 13:41 grab.gif
    -rw-r--r-- 1 freaky None 97538 Jun 9 13:40 grab.png
    -rw-r--r-- 1 freaky None 95336 Jun 9 13:42 grab_pngcrush.png
    -rw-r--r-- 1 freaky None 87168 Jun 9 13:44 grab_pngout.png
    Same deal as above. The original is a 24bit pngcrushed file. None were saved as interlaced/progressive, nor with any transparency.

    I dunno about you, but PNG looks pretty good to me.

    Remember that most PNG's are likely to be 24 bits, as opposed to GIF's maximum of 8, and can even include an extra 8 bits of alpha transparency.

    poor standardization

    What? There's at least one free high quality reference implementation anyone's welcome to use (even Microsoft), the full specification's there for anyone to read, there's a W3C recommendation that's actively maintained. What more standardization do you need?

    Yes, IE doesn't support alpha transparency (something GIF doesn't even have the potential to do; PNG's 8 bit alpha channel is as big as GIF's entire range!), but for general use PNG's a perfect replacement for GIF.

    JPEG can beat both, but only if you don't mind it dropping image quality to do so; not something you want to do generally.

    little exposure

    So what? Most users can just double click on the image file (who's file extension Windows helpfully hides by default) and won't notice the difference. And if some so called "web developer" hasn't heard of it, well, sucks to be him and his clients.
  48. Animated PNG = MNG by J_DarkElf · · Score: 2, Informative

    Read the other comments on this page. PNG Animation exists, and is called MNG.

    Any PNG image is a valid MNG object, therefore creating MNG animations is a trivial task.

    Alas browser support is non-existant except in certain builds of Mozilla, or by use of a plug-in/ActiveX component.

  49. BMF kicks PNG's sorry arse by glyph42 · · Score: 4, Interesting

    Hahaha no. PNG is nowhere near the best lossless image format. Have you ever heard of BMF? PNG is routinely 40% larger than BMF. You can read an informed, scientific comparison of many formats at The Art of Lossless Image Compression (warning: there's an annoying pop-up. Oh well)

    --
    Music speeds up when you yawn, but does not change pitch.
    1. Re:BMF kicks PNG's sorry arse by dvdeug · · Score: 2, Insightful

      Have you ever heard of BMF?

      Nope. And considering that all I can find on the web is a DOS executable, I'd consider it pretty much worthless.

  50. PNG never really took off by OS24Ever · · Score: 2

    I didn't discover what PNG was until I discovered OSS. Prior to that I found GIF format files everywhere. I still do.

    --

    As a rock-in-roll Physicist once said, No matter where you go, there you are.

  51. PNG Is So Much Better Than PBM, PNM, etc. by istartedi · · Score: 3, Insightful

    PNG allows up to 16-bits per channel and has full alpha last time I checked. It can store just about anything, and it's non-lossy.

    OTOH, you've got the tools that are supposed to allow you to have only 2n image converters, but the interchange formats for that (PPM, PBM, PNM, others?) seem to always have some shortcoming, and they always have to introduce yet another interchange format! PNG does it all in one neat little compressed format.

    So forget about scrapping GIF in favor of PNG. Instead, scrap PPM, etc. in favor of PNG. If it doesn't support it already, PNG could be made to support arbitrary bit depth, and arbitrary channels (inverse hyperkinetic bump blending, or whatever you can imagine).

    For the web, in most cases, PNG's capabilities don't add much--unless you are doing something really flashy with your website, in which case you probably use Flash, in which case you have nothing meaningful to say so I ignore you anyway. :)

    At any rate, PNGs (at least the RGB channels) are properly supported by all the major browsers, so if something happens to compress better in PNG, or if you really need full color depth in a non-lossy image, why not use PNG?

    That about sums it up: GIF--color depth not important, crisp lines important, compression important. JPEG--color depth important, crisp lines not important, compression important. PNG--color depth and crisp lines both important, compression not as important (or the image just happens to compress well with PNG).

    In some ways, this is a variation on the "better, faster, cheaper" dilemma.

    Now, the scenario that favors PNG may be less common, but it's nice to know we can reach for it when we need it.

    --
    For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
  52. Well I'll tell you something by TerryAtWork · · Score: 2, Insightful

    PNG never got a grip on the animation thing.

    If you wanted a moving image in a little loop, it was GIF everytime.

    --
    It's Christmas everyday with BitTorrent.
  53. PNG could be better? by dradler · · Score: 4, Insightful

    Even if PNG was a lousy format, it's gotten enough use
    that it's here to stay. Fortunately, it's a pretty good
    format.

    What I wonder is if superior compression techniques, e.g.
    LOCO/JPEG-LS will be incorporated into PNG? I was one of
    the founders of PNG in 1995, but that was eight years of
    technology development ago. Has someone tested PNG
    against JPEG-LS in various real world applications?

  54. Other Bad News for PNG by Asacarny · · Score: 4, Interesting

    In other news, Mozilla dropped support for MNG/JNG (animated PNG/JPEG-like PNG) in its 1.5 branch. Mozilla 1.4 will support it, but unless someone steps up as a full time maintainer, 1.5 will not. Basically, the old maintainer felt that MNG/JNG support wasn't worthwhile, especially because its library took up as much space as the entire imglib -- roughly 240KB on Windows and 170KB on Linux. With some integration they were able to get it down to 135KB, but it stopped around there.

    To be honest, that *is* quite a lot of space for just one format decoder to take. The decoder's writers should get a pat on the back though, because this was still the first MNG/JNG decoder with full support for the spec. (For those who were wondering, JNG is a subformat of MNG and provides non-animated JPEG-compressed images with alpha transparency. Supporting it requires only a few KB extra if MNG is already supported)

    MNG/JNG was never used very much on the web, but neither was PNG before a few browsers started supporting it. Clearly if Mozilla drops support MNG/JNG will be dead in the water. In particular, the format provides 8-bit transparency with *animation*, which you would be hard pressed to find in any other open, web-optimized format.

    Many theme authors used MNG to produce animated icons that blended with the background (The Mozilla Firebird throbber used one, in fact.) Now they will have to jump through hoops to get this feature. Or they will have to emulate it using GIF's (blegh.)

    So far there have been a lot of complaints from the community about the removal of MNG/JNG, but in comparison, very little action. One person submitted an XPI (installer) to allow 1.5/nightlies users to regain MNG/JNG support, but obviously this is suboptimal -- for the format to gain popularity it's going to at least need to be in the default install! Interested persons should check out these bugs on Bugzilla:
    (#195280) Removal of MNG/JNG support
    (#18574) restore support for MNG animation format and JNG image format
    Adam

  55. Re:PNG does have animation: MNG by Skapare · · Score: 2, Insightful

    This decision is what hurt PNG significantly. As we see, there was no migration of animated imaging on the web from GIF to MNG. One reason is there was simply no browser support. And why did PNG take so long to get into browsers? It was developed quick enough, but it should have been in every browser version thereafter. It was not. It took a while before support started to show up. And then, there was no animation. So everyone who wanted to put animated images up had to stay with GIF. I think the PNG folks created a fine piece of technology and failed to promote it properly. And it should have had at least basic animation at a level equivalent to GIF for no other reason than to kill off GIF. But they didn't do that and decide to drag things out, and so GIF did not die.

    --
    now we need to go OSS in diesel cars
  56. PNG is already widely used in multimedia by bushboy · · Score: 2, Interesting

    All rich media content developers have adopted PNG for may reasons.

    One of the better ones is alpha transparency with small file sizes. This is a godsend for developers wanting a seamless anti-aliasing against any other background colour for multi-media and web (except of course for good old microsoft, who STILL don't support PNG transparencey - wonder why ? ;))

    PNG is not going to go away any time soon as it is far more flexible than the GIF format.

    Applications like Macromedia Fireworks use PNG as it's default file extension, anabling it to store layers, image slice data, guidelines etc.

    --
    A slashdotting - you get the stick first and then the carrot !
  57. PNG works in IE to a limited extent by yerricde · · Score: 2, Informative

    Reasonably modern versions of IE do not support png.

    Microsoft Internet Explorer for Windows has displayed PNG images since 4.x.

    IE does not support most transparent versions of PNG, except for the binary-transparent version that directly replicates the features of still GIF.

    --
    Will I retire or break 10K?
  58. Someone's intellectual property expiring?? by ader · · Score: 2, Funny

    You mean they didn't lobby congress to extend patent terms by fifty years retroactively? Jeez, don't they know how to do business in the modern world?!

    Ade_
    /

    --
    Big Bubbles (no troubles) - what sucks, who sucks and you suck
  59. Two solutions for IE 6 PNG color mismatch by yerricde · · Score: 5, Informative

    What you're seeing is probably gamma correction. Try saving the PNG image without a gamma chunk (GIMP's Save As... dialog can do this), and your image's #660000 will match your page's #660000.

    If it's not gamma, then it's probably differences in dithering. In high-color mode, some web browsers use different dithering algorithms on flat rectangles (e.g. backgrounds) vs. images. If this is your problem, the problem should show up with GIF images as well. Here, the best policy is to use a binary-transparent PNG, masking out what touches the edges and matches the background. (IE supports binary transparency in indexed images, just not alpha.)

    --
    Will I retire or break 10K?
  60. Restock Slashcode with PNG icons by SgtChaireBourne · · Score: 2, Interesting

    Slashdot's enough of a mainstream site that going over to PNG would do a lot to increase the visibility and popularity of the format. There can't be more than a couple of dozen images to convert. At worst, even with major fiddling that's about 2 hours work. At best it's a batch job for XV or Gimp...

    --
    Beta is broken and the link to classic doesn't work. Stop wasting our time or there won't be anybody left here.
    1. Re:Restock Slashcode with PNG icons by Guy+Smiley · · Score: 2, Insightful

      I find it highly ironic that slashdot is such a "pro-OSS" and "anti-patent" site, yet they use GIF instead of PNG images. Talk about hypocritical.

  61. Re:problems with PNG by amentia · · Score: 3, Funny

    Yeah, like when they replaced the Internet with MSN...

  62. Not out of the box? by yerricde · · Score: 2, Insightful

    Well, then you just use MNG if you need animation.

    What? Should I tell all users of IE not to visit the site until they have the appropriate plug-in to view the advertisements?

    --
    Will I retire or break 10K?
  63. This makes PNGs work in IE 5.5 + by duran.goodyear · · Score: 2, Informative
  64. Code to use PNGs in IE in a drop-in fashion by _xeno_ · · Score: 3, Informative

    // The following is hereby placed in the public domain. The right to copy and modify is
    // irrevokably granted to all.
    // Copyright (c) Daniel Potter
    //
    // In your onLoad event, call "msiePngHack()" to watch all your PNG images
    // be set to use transparency. (Note that your PNG files must end with
    // a ".png" extension and is case sensetive - this is because the MIME type
    // is not exposed to the JS code. If you have a file that does not end in
    // ".png" then add something like "?f=.png" to the end to fake out this
    // script - and certain versions of IE :) )

    var isIE = navigator.appName == "Microsoft Internet Explorer";
    // if really Opera, this is corrected later

    // Sets a PNG image browser-independently (use for roll over effects etc)
    function setPngImage(img, src) {
    if (isIE && isPng(src)) {
    // need to do PNG hack
    img.width = img.offsetWidth;
    img.height = img.offsetHeight;
    // correct this to point to a blank GIF file
    /* SLASHDOT ONLY: REMOVE THE SPACES IN THE STRINGS. These are intended to prevent "page widening" but screw up the code :) */
    img.src = "http://www.microsoft.com/homepage/gif/1ptrans.gif ";
    img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoade r(sizingMethod='scale')";
    img.filters(0).src = src;
    } else
    img.src = src;
    }

    // checks if the image is a PNG - ends in ".png"
    function isPng(src) {
    return src.length > 4 && src.substring(src.length - 4) == ".png"
    }

    function msiePngHack() {
    // just go through the images collection, and "set" the PNGs using the PNG hack
    // "setPngImage" method to make MSIE happy
    for (i = 0; i < document.images.length; i++) {
    var img = document.images[i];
    try {
    if (!(img.filters)) {
    isIE = false;
    return;
    }
    } catch (ex) {
    isIE = false;
    return;
    }
    setPngImage(img, img.src);
    }
    }

    --
    You are in a maze of twisty little relative jumps, all alike.
    1. Re:Code to use PNGs in IE in a drop-in fashion by __aaevmb228 · · Score: 2, Insightful
      // The following is hereby placed in the public domain. The right to copy and modify is
      // irrevokably granted to all.
      // Copyright (c) Daniel Potter

      You can't have it both ways. Either it's in the public domain or you retain your copyright. Pick one.

  65. PNG-JPG by Some+Bitch · · Score: 2, Informative

    I use PNG as my local format for most images simply because I can then fiddle with layers/text/blending/whatever at some time in the future if need be.

    I generally export them to JPG for web use though simply because a quality 80 JPG is STILL smaller than the original PNG by quite some way.

    Also means people can't nick my stuff and change the text (not easily) without asking me (in which case I'll happily email them the original PNGs).

  66. PNGs work just fine, thank you, even in IE by David+Leppik · · Score: 2, Insightful
    A lot of people have been saying stuff like:
    • PNGs may be great, but nobody uses them
    • PNGs never caught on because IE doesn't support them
    • PNGs will never catch on until M$ supports all their features.
    • I can't get PNGs to work
    The fact of the matter is, PNGs work great as a drop-in replacement for GIFs. If you limit yourself to what GIFs can do, IE 4.x and Netscape 4.x can use them just fine. And those browsers have just about disappeared from old age.

    Of course, if you create a 24-bit PNG to compete with an 8-bit GIF, the GIF will be smaller. Otherwise the PNG will be significantly smaller. If you use gamma correction in the PNG, weird things can happen when people have their gamma misconfigured.

    In my own tests a year ago, IE 5.5 on Windows and Mac, as well as Netscape 7 and Mozilla (on Windows, Mac and Linux), all browsers did just fine with 8-bit images, 24-bit images, as well as alpha transparency. That last one is really, really cool looking and everyone should try it.

    My theory is that few people use PNGs because most of the HTML books out there recommend GIFs because that's what the authors learned and nobody has bothered to correct them.

    More info:

  67. Drop-in PNG behavior by _Sprocket_ · · Score: 2, Informative


    Now, it is possible to use JavaScript -the scourge of the Net normally, but this is one of those points where it can be genuinely useful- to make IE apply the AlphaImageLoader filter to PNG images, but no one's managed to make a complete drop-in replacement that will apply to all PNG images im a page yet. It can be done, but it hasn't been done yet.


    Its been done:
    http://www.mongus.net/pngInfo/

  68. PNG for grayscale by stokes · · Score: 3, Interesting
    One underappreciated feature of PNG that I really like is the support of 16b grayscale. While video hardware (at least the hardware I have) won't display more than 256 levels of gray, having the extra data is good for displacement mapping and such in 3D.

    (Before anyone says that their 24b video card displays more than 256 grays, consider: grayscale is R = G = B. If you have 8 bits per channel and all three channels need to be equal to form grayscale, that's only 256.)

  69. The problem is that GIF never went away by rudy_wayne · · Score: 2, Insightful

    PNG never took off because GIF never went away.

    Despite all the moaning and gnashing of teeth over the GIF patent, every graphics program produced over the past 15 years, including many shareware programs, has included GIF support. The end result was that people were able to continue creating, editing and using GIF files and the average person never even noticed a problem.

  70. PNG alpha channel by cybpunks3 · · Score: 3, Informative

    PNG is probably the best format out there for full color images w/alpha channel. It's definitely the smallest in this mode.

    You can import PNGs into Macromedia Flash and preserve the alpha channel.

    What this means is, for instance, you could import an image sequence generated by a rendering package like Lightwave and when you output the Flash, you are left with the equivalent of a JPEG image sequence layer with a perfect alpha channel on the edges. Even though the JPEG introduces blocky artefacting as the compression is ramped up, it doesn't mess up the alpha blending.

    There is nothing else I know of that can do something like that.

    I really wish JPEG had a mode with an alpha channel but it doesn't.

  71. WARNING - Parent comment is not work safe! by jafuser · · Score: 2, Informative

    Parent node contains ASCII art of the famous goatse.cx picture. Probably not work safe for most people... =)

    --
    Please consider making an automatic monthly recurring donation to the EFF