talira

The official PNG reference library

open sourcelibpng-2.0free

libpng is the official reference library for reading and writing PNG images, in use since 1995. It supports almost all PNG features, is extensible, and is portable ANSI C (C89) source code that needs zlib. The 1.6 series hides libpng's internal structures behind png_get and png_set accessor functions and has a simplified API; the next release, libpng 2.0 (formerly 1.8), is in development, needs a C99 compiler, drops long-deprecated APIs and adds APNG and other PNG 3 features. Cosmin Truta maintains it with the PNG development group.

Problems it solves

  • read and write PNG files from a C or C++ program
  • decode PNG images in a native app without a heavy imaging library
  • the standard library other software uses to handle PNG

Features

  • Reads and writes PNG images, supporting almost all PNG features
  • Extensible
  • Portable ANSI C (C89) source code
  • Simplified API alongside the full png_get and png_set accessor API
  • pngvalid test program and pnglibconf.h feature configuration

Alternatives

The same job

These do what libpng does.

  1. png (R) Read, write and display PNG images in R
  2. libwebp Library to encode and decode images in WebP format
  3. libheif HEIF and AVIF image file format decoder and encoder

Compare libpng with the top 3