PNG (original) (raw)
PNG (pronounced ping) is a relatively newbitmap image formatthat is becoming popular on the Web and elsewhere. Officially, PNG stands for Portable Network Graphics, but some people prefer PNG's Not GIF, a recursive acronym.
The motivation for creating the PNG format came in early 1995, after Unisys announced that it would be enforcing U.S. Patent 4,558,302 (a software patent) and foreign counterparts on the LZW data compression algorithm used for GIF. There were also other problems with the GIF format which made a replacement desirable, notably its limitation to 256 coloursat a time when computers capable of displaying far more than 256 colours were becoming common. Although GIF allows for animation, it was decided that PNG should be a single-image format. A companion format called MNG has been defined for animation. PNG gained popularity in August 1999, after Unisys terminated its royalty-free patent licenses to developers of free software and non-commercial software.
PNG uses a non-patented lossless data compressionmethod known as deflation. PNG combines this with prediction: for each image line a filter method is chosen which predicts the colour of each pixel based on the colours of previous pixels and subtracts the predicted colour of the pixel from the actual colour. An image line thus filtered is often more compressible than the raw image line would be. PNG can achieve greater compression than GIF on almost any image, but some implementations make poor choices of filter methods and therefore produce unnecessarily large PNG files.
A PNG file consists of an 8-byte signature (89 50 4E 47 0D 0A 1A 0A in hexadecimal) followed by a number of chunks, each of which conveys certain information about the image. Chunks declare themselves as critical or ancillary, and a program encountering an ancillary chunk that it does not understand can safely ignore it. This chunk-based structure is designed to allow the PNG format to be extended while maintaining compatibility with older versions.
- Version 1.0 of the PNG specification was released on 1 July 1996, and later appeared as RFC 2083. It became a W3C Recommendation on 1 October 1996.
- Version 1.1, with some small changes and the addition of three new chunks, was released on 31 December 1998.
- Version 1.2, adding one extra chunk, was released on 11 August 1999.
- PNG is now an International Standard (ISO/IEC 15948:2003), also released as a W3C Recommendation on 10 November 2003. This version of PNG differs only slightly from version 1.2 and adds no new chunks.
The MIME media type for PNG is image/png
(approved on 14 October 1996).
External links
- PNG Home Site
- PNG-supporting browsers - overview of PNG status in different web browsers. First Windows IE support in 4.0b1; Netscape 4.04 [1].
- RFC 2083 - the PNG 1.0 specification
- PNG Specification (Second Edition), W3C Recommendation 10 November 2003
- The Story of PNG by Greg Roelofs
- Test inline PNG images
PNG also stands for
- Papua New Guinea
- Pawnee National Grassland
- Professional Numismatists Guild
- Pack 'n' Go