Flux rss

PNG format

PNG format

The PNG format (Portable Network Graphics or Ping format) is a bitmap (raster) graphic file format. It was developed in 1995 in order to provide a free alternative to the GIF format, which is a proprietary format whose rights are held by Unisys (proprietor of the LZW compression algorithm), to whom all software publishers using this type of format are under obligation to pay royalties. Thus, PNG is also a recursive acronym for PNG Not GIF.

Characteristics of the PNG format

The PNG format makes it possible to store images in black and white (a colour depth of 16 bits per pixel), true color (a colour depth of 48 bits per pixel), as well as indexed images, using a palette of 256 colours.

Moreover, it supports alpha channel transparency, i.e. the possibility of defining 256 levels of transparency, while the GIF format only allows one colour of the pallet to be defined as transparent. It also has an interlacing function which makes it possible to show the image gradually.

The compression offered by this format is a (lossless compression) 5 to 25% better than GIF compression.

Finally, PNG stores image gamma information, which makes a gamma correction possible and allows it to become display-device-independent. Error correction mechanisms are also stored in the file in order to guarantee its integrity.

Structure of a PNG file

A PNG file comprises a signature, making it possible to indicate that it is a PNG file, followed by a series of elements called chunks. The signature of a PNG file (in decimal notation) is the following:

137 80 78 71 13 10 26 10
The same signature in hexadecimal notation is:
89 50 4E 47 0D 0A 1A 0A

Each chunk comprises 4 parts :

  • The size, a non-signed 4-byte integer, describing the size of the chunk
  • The chunk type: a 4-character (4-bytes) code comprised by ASCII alphanumeric characters (A-Z, a-z, 65 to 90 and 97 to 122) allowing the nature of the chunk to be established
  • The chunk data
  • The CRC (cyclic redundancy check), a 4-byte correcting code which allows the integrity of the chunk to be checked

The chunks can be present in any order except that they must start with the header chunk (IHDR chunk) and finish with the end chunk (IEND chunk)

The main chunks (called critical chunks) are:

  • IHDR bitmap information header
  • PLTE Palette
  • IDAT Image data
  • IEND Image trailer

The other chunks (called ancillary chunks) are the following:

  • bKGD Background color
  • cHRM Primary chromaticities and white point
  • gAMA Image gamma
  • hIST Image histogram
  • pHYs Physical pixel dimensions
  • sBIT Significant bits
  • tEXt Textual data
  • tIME Image last-modification time
  • tRNS Transparency
  • zTXt Compressed textual data

More information



Last update on Thursday October 16, 2008 02:43:16 PM.
This document entitled « PNG format » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Results for PNG format

Download Free Word/Doc Txt to Image Jpg/Jpeg Bmp Tiff Png It is usually the images that we insert into Word, Excel or PowerPoint documents. This time, it is the opposite, because we are going to convert these documents to image formats. All to Jpg / JPEG Image Bmp Tiff Png Converter is a powerful tool which... en.kioskea.net/telecharger/telecharger-1630-free-word-doc-txt-to-image-jpg-jpeg-bmp-tiff-png
How to add an image to your website How to add an image to your website The codes usually used to add an image to your website are if you have to upload a JPEG format but can also bear a BMP, PNG or GIF extension. This option is used while browsing an... en.kioskea.net/faq/sujet-565-how-to-add-an-image-to-your-website
Download Network Notepad Simple, efficient, free:-) to simplify a small network, network notepad proves to be enough efficiency. He allows to export schemata accomplished in format BMP, GIF or else PNG. He allows furthermore to make pings, to establish connections telnet... en.kioskea.net/telecharger/telecharger-321-network-notepad

Results for PNG format

Formatting Your Hard DriveFormatting Your Hard Drive Formatting and installing your Hard drive using the installation CD ] A hard disk drive is a non-volatile device mainly for data storage. Usually faster than any other storage device, this essential... en.kioskea.net/faq/sujet-194-formatting-your-hard-drive
Formatting your Flashdisk (USB Key )Formatting your Flashdisk (USB Key) How to format your USB Key? It is compulsory to format your USB Key regularly if you are frequently performing File transfer to one computer to another. Your computer can get infected with potential... en.kioskea.net/faq/sujet-186-formatting-your-flashdisk-usb-key
Formatting your drive with Fat32Formatting your drive with Fat32 Windows XP normally refuse to format a partition higher than 40 GB with FAT32. however this operation performs properly with NTFS The solution for this issue is to boot your installation CD and use the... en.kioskea.net/faq/sujet-676-formatting-your-drive-with-fat32

Results for PNG format

WD My Book formattin (Solved)Hello, I bought a 1TB Western Digital My Book External Hard Drive, I need to format it to become Mac OS Extended (Journaled) but I am having a problem doing this, I keep receiving the same error message "file system verify or repair failed" It will... en.kioskea.net/forum/affich-4848-wd-my-book-formattin
Outlook issue with HTML form (Solved)Hello, I have a small website with a very simple HTML form that allows user to send his data; then the webmaster receives an email with the data included in the form. My problem is that, when ever Outlook is set up on a machine, the email button open... en.kioskea.net/forum/affich-247-outlook-issue-with-html-form
Excel Date Format (Solved)Hello, when users enter a date in excel using this format 12.1.2008, i need the cell to automatically change the format to 12-Jan-08 thanks, moses en.kioskea.net/forum/affich-19164-excel-date-format

Results for PNG format

Download PaintStudio LitePaintStudio is an editor and a slide viewer of pictures. It supports several formats of pictures notably Bitmap (*.bmp), JPEG (*.jpg, *.jpeg), GIF (*.GIF), PNG-8 and 24 (*.png), TARGA (*.tga), PCX (*.pcx), Windows Icons (*.ico), Win32 Enhanced... en.kioskea.net/telecharger/telecharger-417-paintstudio-lite
Download HoverSnapHoverSnap is simply a program of capture of screen. It is very intuitive and supports formats jpg, bmp, png, and gif. HoverSnap can capture the screen, the active window or a selection on the window. You can even capture stacked windows. You can... en.kioskea.net/telecharger/telecharger-213-hoversnap
Download PostersPosters is a software able to transform and iimport which image of formats BMP, WMF, PCX, HAIR, GIF, JPG, png, in a poster of big size immediately ready to be printed. The software uses to the maximum the capacities of your printer (color or not) and... en.kioskea.net/telecharger/telecharger-1728-posters

Results for PNG format

Formatting a hard disk Before trying to understand formatting, you first need to understand how a hard drive works. Many people do not distinguish low-level formatting (also called physical formatting) from high-level formatting (also called logical formatting). Even... en.kioskea.net/repar/format.php3
Video and digital imaging - The GIF format The GIF format (Graphic Interchange Format) is a bitmap (raster) graphic file format developed by Compuserve. There are two versions of this file format developed respectively in 1987 and 1989: GIF 87a supporting LZW compression, interlacing... en.kioskea.net/video/format-gif.php3
Video and digital imaging - The TIF format The TIF format (Tagged Image File Format) is a bitmap (raster) graphic file format. It was developed in 1987 by Aldus (now belonging to Adobe). The latest specifications (Revision 6.0) were published in 1992. The TIFF format is an old graphic... en.kioskea.net/video/format-tif.php3