Join The Fastest Growing Worldwide Association for Serious Photographers

PNG (Portable Network Graphics)

SWPP Photographic Glossary

PNG, an acronym standing for Portable Network Graphics, is a digital image file format developed in the mid-1990s as a patent-free, technically superior replacement for the GIF format, which was encumbered by a software patent on its LZW compression algorithm that generated significant controversy and legal uncertainty in the web development community. PNG was designed from the outset as an open standard, free from intellectual property restrictions, and optimised specifically for the lossless compression and display of images in web browsers and other digital environments, making it one of the most widely supported and practically important image formats in digital photography and web publishing.

The most fundamental technical distinction between PNG and formats such as JPEG is its use of lossless rather than lossy compression. PNG compresses image data using a combination of pre-compression filtering and the Deflate compression algorithm - the same compression technology used in ZIP files - in a way that reduces file size without discarding any image information. Every pixel in the original image is preserved exactly in the compressed file, and decompressing the PNG file returns the image to its exact original state with no degradation of quality whatsoever. This lossless nature makes PNG ideally suited to images that contain sharp edges, areas of flat colour, text, graphics, and other content where the block artefacts and tonal smearing of JPEG compression would be visually objectionable, and to situations where an image must be opened, edited, and resaved multiple times without any cumulative quality loss.

PNG supports a comprehensive range of colour modes and bit depths, making it more versatile than its GIF predecessor. It supports greyscale images at bit depths from 1 to 16 bits per channel, RGB colour images at 8 or 16 bits per channel - the 24-bit RGB mode allowing the representation of over 16 million distinct colours, compared to the 256 colour maximum of GIF - and indexed colour images using a palette of up to 256 colours. The support for 16-bit per channel RGB - sometimes referred to as 48-bit colour - makes PNG one of the few web-oriented formats capable of preserving the full bit depth of high quality photographic images from professional cameras, though 8-bit per channel is the most widely used setting for typical web and screen applications.

One of the most practically valuable features of PNG for web and graphic design use is its comprehensive support for transparency through an alpha channel. Unlike GIF, which supports only binary transparency - a pixel is either fully transparent or fully opaque - PNG supports a full 8-bit or 16-bit alpha channel that allows each pixel to have any degree of transparency from completely opaque to completely transparent, with the full range of partial transparency values in between. This full alpha transparency support allows PNG images to be composited over different backgrounds with smooth, anti-aliased edges that blend naturally into the background colour, eliminating the jagged, halo edged appearance that GIF transparency often produced when images were placed on backgrounds of different colours from the one they were originally designed for. This capability makes PNG the standard choice for logos, interface elements, illustrations, and other graphics that need to be overlaid on varying backgrounds in web pages and digital documents.

Despite its many technical advantages, PNG has certain limitations that have prevented it from replacing JPEG entirely in photographic web use. Because PNG uses lossless compression, its file sizes for photographic images with complex continuous tone content - the type of image that JPEG's lossy compression handles very efficiently - are typically considerably larger than equivalent JPEG files, making PNG less practical for photographic image delivery where minimising file size and page loading time are priorities. PNG also does not support CMYK colour mode, limiting its use in print production workflows, and unlike JPEG does not support the embedding of EXIF metadata in a standardised way that is universally recognised across all applications.

In practice, PNG and JPEG are complementary rather than competing formats, each suited to different types of digital image content. PNG is the preferred choice for graphics, illustrations, screenshots, images containing text, and any image requiring transparency or lossless quality preservation, while JPEG remains the more practical choice for photographic images where the efficiency of lossy compression at high quality settings produces acceptable results at much smaller file sizes. The WebP format developed by Google has emerged as a more recent alternative that offers both lossy and lossless compression with alpha channel support and typically smaller file sizes than both JPEG and PNG, though PNG remains one of the most universally supported and relied upon image formats across the web and in digital imaging workflows.

Related Photography Terms




Trustpilot


Update cookies preferences