Slashdot Mirror


PNG (image format) 1.1 spec released

Greg Roelofs writes "Graphics developers (yo, GIMP folks!) will be mildly amused to know that the PNG Development Group has released version 1.1 of the Portable Network Graphics specification. It includes a significantly rewritten section on gamma correction, a couple of new chunks for color correction, and some little stuff relating to suggested palettes, alpha-channel processing, etc. A complete pseudo-context-diff is available. Note also that ISO/IEC standardization is underway, and the PNG home page has even been spiffed up a tiny bit. Whoa. "

30 comments

  1. Talk about getting your money's worth by Anonymous Coward · · Score: 0

    Hey Rob? How much are your sponsors paying for that pretty gray-on-black "INTERNAL SERVER ERROR" in the top frame?

  2. Why use PNG? by Anonymous Coward · · Score: 0

    It helps that there is a free, standard
    implementation of PNG so that it is easy
    for programs to use. Other people have
    noted PNG's compression advantages, and
    the fact that there is a single standard.
    The progressive-display features of PNG
    are also nice for Web use.

  3. Why use PNG? by Anonymous Coward · · Score: 0

    Does TIFF have a gamma setting, an alpha channel, or good interlacing? (And does everything support them?) I see these as PNG's real advantages, at least over GIF (along with freedom from patents and truecolor). Also, PNG is so simple it has a shot at being mostly implemented, even in browsers.

    (PNG:TIFF :: XML:SGML)

  4. Linux 2.2.0-pre6 is out! by Anonymous Coward · · Score: 0

    Wahoo. Does it implement PNG? No? Then go away!

    What kind of idiot purposefully annoys potential volunteer testers by spamming them? Do you work for MS or something?

  5. Do they offer PNG animations now? by Anonymous Coward · · Score: 0

    That's about the only reason why we still have t use GIFs.

  6. Why use PNG? by Anonymous Coward · · Score: 0
    • PNG has restricted itself to those types of images used most of the time, TIFF can do
      everything, but no viewer implements it
    • important for web browsers: TIFF does not know
      interlacing and, more important, it's not streamable - the image data could be anywhere in
      the file, loading a TIFF can involve lots of seek
      operations, e.g. get image description at the
      end of the file, then get image at the beginning
      of the file - this way, a browser had to download the complete file before even knowing how the image resolution is
    • Adobe, the TIFF makers, are a bit lazy - the
      7.0 version of their specs will probably never come out as nobody there seems to care for it, while PNG has people working on it (library and specs)
    • to some of the other posters: yes, TIFF does
      know alpha and gamma, it even has support
      for PNG's deflate compression algorithm and JPEG's
      lossy compression algo, though nobody really supports it - as for libraries, there is libtiff, but I guess nobody does development on it;
      the only compression algorithm widely supported in TIFF is LZW, which is the same as in GIF - deflate almost always beats it
    • you can easily integrate information on the
      image in a file by specifying proprietary tags in TIFF or adding text comments
    • TIFF supports many color spaces like CMYK,
      CIE LAB etc.
    • you can have as many images as you like in a
      TIFF, but only one in a PNG (e.g. for thumbnails)


    People thought a bit about what a network image file format should have in it when designing it
    and they didn't make the mistake to try to
    integrate anything. TIFF also has some advantages,
    but most of them don't matter for the net (e.g. CMYK support). OTOH, PNG has some nifty things in it TIFF doesn't, e.g. checksums everywhere.


    Marco
  7. Irony on their website by Anonymous Coward · · Score: 0

    Does anyone else find it ironic that the PNG logo on the PNG website is itself a GIF?

    1. Re: Irony on their website by Cave+Newt · · Score: 1
      An AC wrote:

      Does anyone else find it ironic that the PNG logo on the PNG website is itself a GIF?

      Correction: it's a GIF to you, presumably because you have a stupid (i.e., not conformant with HTML 4.0) browser. To anyone with a clueful browser, it's a PNG. Here's the source (which, of course, you could have looked at yourself):

      <H5 ALIGN="center">
      <A HREF="img_png/pnglogo-blk.jpg">
      <OBJECT WIDTH="256" HEIGHT="192" TYPE="image/png"
      DATA="img_png/pnglogo-blk-sml1.png">
      <IMG WIDTH="256" HEIGHT="192" SRC="img_png/pnglogo-blk-sml1.gif"
      ALT="[PNG: 256x192 colored-balls logo]"></OBJECT></A>
      </H5>

      The only general-purpose approach that guarantees a PNG image to most of the browsers capable of viewing them natively is content negotiation, something that requires direct access to the server (and also something that even Apache doesn't implement very elegantly). Did I mention that all current versions of Navigator have a bug in their implementation of client-side negotiation, a tiny bug that nevertheless means IIS servers will never send an embedded (that is, IMG-tagged) PNG image to them? Check out puzzlemaker.com, one of the better-known casualties.

      But I will do my best to make sure Mozilla/Gecko has excellent PNG support. I have just one little detail to get out of the way first...

      --
      -- GRR: Newtware, PNG Group, AlphaWorld Map, Info-ZIP, Google cluster infrastructure, ...
  8. Where's "MNG"? by Anonymous Coward · · Score: 0

    See http://www.cdrom.com/pub/mng/mngdocs.html.

    Marco

    1. Re: Where's "MNG"? by Cave+Newt · · Score: 1
      Lalo Martins wrote:

      So shouldn't we be adding it to GIMP, Mozilla, Imlib and others? Can you provide a URL?

      As others have noted, MNG is pretty much fully specified (and note that it includes a JPEG/PNG hybrid called JNG that provides transparency and gamma/color-correction to JPEG), but there is basically zero in the way of sample source code for it--and it is much more complex than PNG. On the plus side, Gerard Juyn has offered to make his MNGeye viewer code available as the starting point for a "libmng" implementation, but no one has had time to do anything with it yet. So those who are truly keen on sprite-based animation a la MNG can always get started and make life nicer for all of us.

      In fairness, I should also note that Flash is in many respects competitive with MNG, and it includes some PNG-like support as well. So despite the fact that MNG includes some features not present in Flash, it may well turn out that Flash "wins" simply by virtue of being out there, being "open enough," and having several implementations (well, at least two, anyway).

      Even if Flash becomes the de facto next-generation animation standard, I suspect that JNG will find favor, too. If you're already linking with libjpeg and libpng, adding support for JNG requires almost no additional code.

      --
      -- GRR: Newtware, PNG Group, AlphaWorld Map, Info-ZIP, Google cluster infrastructure, ...
  9. Yes, but... by Anonymous Coward · · Score: 0

    Wasn't PNG developed to replace GIF because compuserve (and whoever owns the format with them) all of the sudden became bastards? I don't see why the logo isn't a jpeg...

  10. Yes, but... by Anonymous Coward · · Score: 0

    There's a long history behind this submarine patent debacle. Sperry had the LZW patent, so now Unisys (spit) does. CompuServe waited a long time to warn everyone after they were told this is an issue, but otherwise this is really Welch's fault for publishing that article conveniently forgetting to mention the patent.

  11. Why use PNG? by Anonymous Coward · · Score: 0

    SGML is horrendously complex, even for an ISO standard. nsgmls (part of James Clark's excellent SP package) compiles to over a megabyte of x86 code- and it's just a parser.

    IMHO specs like PNG that J.Random Hacker can sit down and actually implement correctly are far superior.

  12. No. See http://www.cdrom.com/pub/mng/ by Anonymous Coward · · Score: 0

    The PNG standard is pretty braindead if
    it does not support animations.

    I will not use it.

  13. Why make it an ISO/IEC standard? by Anonymous Coward · · Score: 0

    Is there any particular advantage to making PNG an
    ISO/IEC standard? These standards are sold for
    profit, and so the standard will not be freely
    available if it goes ISO/IEC. So, why do it?

    1. Re: Why make it an ISO/IEC standard? by Cave+Newt · · Score: 1
      An AC wrote:

      Is there any particular advantage to making PNG an ISO/IEC standard? These standards are sold for profit, and so the standard will not be freely available if it goes ISO/IEC. So, why do it?

      The PNG spec, like the VRML 2.0 spec before it, will remain freely available. The ISO will have the right to sell the version with their boilerplate and logo, but the technical content will be identical, and there will be no restrictions on the distribution of the W3C and PNG Development Group versions.

      As for benefits: believe it or not, there are companies (and especially governments) that require the use of an international standard wherever possible. In the case of the US, it is often the case that companies wishing to do business under government contract must support the relevant standards in their products--and to the extent that this support is not seen as a complete waste of time and code, it generally ends up in the versions of the product that you buy, too.

      ISO/IEC standardization is also seen as somehow better/safer than standardization promulgated by Internet upstarts like the W3C, IETF or PDG. Again, that may result in more and/or better support in your favorite products.

      Of course, these things take time, and it looks like there will be another FCD and four-month voting period before PNG even makes it to the Draft International Standard stage, which itself lasts a good number of months. So it's pretty safe to say that there are no immediate advantages to all of this.

      By the way, it's conceivable (though not definite) that zlib/deflate will be next. :-)

      --
      -- GRR: Newtware, PNG Group, AlphaWorld Map, Info-ZIP, Google cluster infrastructure, ...
  14. ISO / IEC for profit? by Anonymous Coward · · Score: 0
    The standards are sold for profit.

    ISO/IEC/IEEE could post standards on their web page for free download. Cost to them: $1000/month for net access.

    They could sell them for something approximating cost. The POSIX standard (~750 pages) sells for around $100. That's more per page than most computer books, which are definitely sold for profit.

    So, work it out. It's profit. Especially if those who participate in the standards process get no revenue from the selling organization. Rather, the ISO pockets it all.

  15. No Subject Given by Anonymous Coward · · Score: 0

    Who is Fastest?

  16. good idea, heywire over spec... by pixel+fairy · · Score: 1

    nice little mess over 0.89 and 1.0 being incompatible...
    hopefully this one will help to fix that (or at least have a different name for the compiled lib when they release that)

  17. Can't replace GIF until ... by ChipR · · Score: 1
    I must add my voice to that of others who have pointed out that PNG can't displace GIF as a web standard until
    1. It has a good standard way to do animation--that's the vaporware known as MNG, right?
    2. It is fully and correctly supported by the Big Two browsers; this would include full alpha blending, for backgrounds as well as inlines. It would be A Good Thing to ensure that Mozilla does this.
    I've also noted that PNG can be quite a lot larger than GIF for certain things, like those awful transparent spacer images, and certain small things like flat two-color text images such as those used occasionally as buttons or labels. Not the most important shortcoming, but a few of those can add up quickly.

    Until then, PNG will remain a turbo-studly curiosity, used mostly in niche applications.

    I still love it, however, and want it to succeed.

  18. Why use PNG? by Chris+Hanson · · Score: 1
    What's the benefit of using PNG over TIFF, other than that most browsers (for some reason) don't support TIFF?

    To me, it seems that TIFF is a mature format with all the options and extensibility that anyone could want. About the only thing I can think of off the top of my head that's missing is a standard tag for LZ77 compression like that used in PNG. With enough lobbying and/or agreement among developers, that could be fixed too.

    (Note: I realize PNG's advantages over GIF, and over some other image formats. It's TIFF I'm particularly interested in.)

  19. Where's "MNG"? by Lalo+Martins · · Score: 1

    I've been waiting for MNG (Multiple Network Graphics)
    format for what, two years? The PNG folks said
    animation and other multi-image technologies don't
    belong in PNG (not that I can see the reason) and
    they've been promising this MNG thing. Isn't it
    time to start doing some actual work on this stuff?
    Animation is close to essential in webwork today.

  20. Where's "MNG"? by Lalo+Martins · · Score: 1

    So shouldn't we be adding it to GIMP, Mozilla, Imlib and others? Can you provide a URL?

  21. How did this get a score of 1? It should be -1. by Jayson · · Score: 1

    How does this even resemble anything with content?

  22. Why use PNG? by alfonso_117 · · Score: 1

    One benefit of PNG over TIFF, especially for WWW applications, is the turbo-studly seven-pass interlacing format.

    Kinda like the old GIF interlacing, except turbo-studly. :)

  23. Turbo-studly? by Mawbid · · Score: 1

    Excuse me?
    --

    --
    Fuck the system? Nah, you might catch something.
  24. ISO / IEC for profit? by JoeBuck · · Score: 1

    The issue is that, generally speaking, you can't post an ISO standard on the net. It's against the rules. The only way to get the doc is to pay ISO or the national standards body that is a member of ISO (ANSI in the US).

    Now, it may be possible to get around this somehow, and negotiate an exception with ISO. But it is a reason to prefer the IETF process; IETF standards are made freely available.

  25. Because TIFF = big by Speed+Racer · · Score: 1

    Even with compression, TIFF files are much larger than JPG or even PNG files.

    If I am wrong, I'm sure some AC will point it out.

    --
    Free Mac Mini. Yes, I'm
  26. No Subject Given by ghostOfSlashDot · · Score: 1

    Cool....

  27. Mindless drivel. by ghostOfSlashDot · · Score: 1

    As I said...