PNG

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Extensions)
m (Extensions)
Line 24: Line 24:
 
! References and remarks
 
! References and remarks
 
|-
 
|-
|oFFs, pCAL, sCAL, gIFg, gIFx, gIFt, fRAc || Refer to [http://pmt.sourceforge.net/specs/pngext-1.2.0-pdg-h20.html Extensions to the PNG 1.2 Specification, v1.2.0].
+
|<code>oFFs</code>, <code>pCAL</code>, <code>sCAL</code>, <code>gIFg</code>, <code>gIFx</code>, <code>gIFt</code>, <code>fRAc</code> || Refer to [http://pmt.sourceforge.net/specs/pngext-1.2.0-pdg-h20.html Extensions to the PNG 1.2 Specification, v1.2.0].
 
|-
 
|-
|sTER || Refer to [ftp://ftp.simplesystems.org/pub/libpng/png/documents/pngext-1.3.0-pdg.html Extensions to the PNG 1.2 Specification, v1.3.0].
+
|<code>sTER</code> || Refer to [ftp://ftp.simplesystems.org/pub/libpng/png/documents/pngext-1.3.0-pdg.html Extensions to the PNG 1.2 Specification, v1.3.0].
 
|-
 
|-
|dSIG || Refer to [ftp://ftp.simplesystems.org/pub/libpng/png/documents/pngext-1.4.0-pdg.html Extensions to the PNG 1.2 Specification, v1.4.0], and the [http://png-dsig.sourceforge.net/ PNG dSIG website].
+
|<code>dSIG</code> || Refer to [ftp://ftp.simplesystems.org/pub/libpng/png/documents/pngext-1.4.0-pdg.html Extensions to the PNG 1.2 Specification, v1.4.0], and the [http://png-dsig.sourceforge.net/ PNG dSIG website].
 
|-
 
|-
|acTL, fcTL, fdAT || Used in [[APNG]] files.
+
|<code>acTL</code>, <code>fcTL</code>, <code>fdAT</code> || Used in [[APNG]] files.
 
|-
 
|-
|vpAg || Used by [[ImageMagick]].
+
|<code>vpAg</code> || Used by [[ImageMagick]].
 
|-
 
|-
|CgBI || Refer to [[CgBI]].
+
|<code>CgBI</code> || Refer to [[CgBI]].
 
|-
 
|-
|eXIf || [[Exif]] metadata. Refer to [http://ftp-osl.osuosl.org/pub/libpng/documents/proposals/eXIf/png-proposed-eXIf-chunk-2017-06-15.html PNG Proposed eXIf chunk] [approved 2017-07].
+
|<code>eXIf</code> || [[Exif]] metadata. Refer to [http://ftp-osl.osuosl.org/pub/libpng/documents/proposals/eXIf/png-proposed-eXIf-chunk-2017-06-15.html PNG Proposed eXIf chunk] [approved 2017-07].
 
|}
 
|}
  

Revision as of 21:54, 16 July 2017

File Format
Name PNG
Ontology
Extension(s) .png
MIME Type(s) image/png
LoCFDD fdd000153
PRONOM fmt/13, fmt/12, fmt/11
Released 1996

Portable Network Graphics (PNG) was devised starting in a discussion on newsgroup comp.graphics in 1995, with the first version of its specification released in 1996. The motivation for its creation was to create a free and unencumbered image format in the wake of the patent issue with GIF.

PNG has become a very popular graphic format, but widespread adoption on the Web was slow due to the fact that the first specification came out over a year after the Web had begun to be popular with the general public, meaning that there were many sites and browsers out there not using and supporting the new format; subsequently, browsers began to support it, but often had rendering problems which persisted even in fairly late versions years later; this caused webmasters to be slow to switch from GIF to PNG, though many eventually did so. Since the LZW patent that affected GIF is expired now, the "free format" motivation for the switch no longer applies.

Unlike GIF, PNG officially supports only still graphics, not animation. However APNG, an unofficial extension of the PNG image format that retains the .png file extention does support animation. Another related format, MNG, officially does support animation.

Contents

Format

A PNG file consists of an 8-byte signature (hex 89 50 4E 47 0D 0A 1A 0A), followed by a sequence of "chunks". Each chunk has an 8-byte header, 4 bytes of which indicate the chunk length, and 4 bytes of which are a chunk type code indicating the type of data stored in the chunk. Each chunk also has a 4-byte trailer which stores a checksum.

Extensions

Extensions by chunk type

Chunk type References and remarks
oFFs, pCAL, sCAL, gIFg, gIFx, gIFt, fRAc Refer to Extensions to the PNG 1.2 Specification, v1.2.0.
sTER Refer to Extensions to the PNG 1.2 Specification, v1.3.0.
dSIG Refer to Extensions to the PNG 1.2 Specification, v1.4.0, and the PNG dSIG website.
acTL, fcTL, fdAT Used in APNG files.
vpAg Used by ImageMagick.
CgBI Refer to CgBI.
eXIf Exif metadata. Refer to PNG Proposed eXIf chunk [approved 2017-07].

Other extensions

  • XMP metadata can be stored in an iTXt chunk with keyword "XML:com.adobe.xmp". Refer to the XMP Specification, Part 3.

Related Formats

Specifications

Metaformat files

Software

Sample files

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox