# libpng

> The official PNG reference library

Source: https://talira.ai/catalog/libpng-ds74zegd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [media / images / codecs](https://talira.ai/categories/media/images/codecs), [languages / c cpp](https://talira.ai/categories/languages/c-cpp)
- Licence: libpng-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [PNG Development Group](https://talira.ai/orgs/png-development-group.md)

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.

## Links

- Website: https://www.libpng.org/pub/png/libpng.html
- GitHub: https://github.com/pnggroup/libpng
- Docs: https://www.libpng.org/pub/png/libpng-manual.txt

## 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

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 0.86, adoption 0.65, momentum 0.31, community 0.84, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 39 commits in the last 90 days
- 1.7k GitHub stars
- 123 contributors
- backed by PNG Development Group

## Alternatives

- [png (R)](https://talira.ai/catalog/png-r-8v46nsc9.md): Read, write and display PNG images in R
- [libwebp](https://talira.ai/catalog/libwebp-8yrgmmwn.md): Library to encode and decode images in WebP format
- [libheif](https://talira.ai/catalog/libheif-09e5kekk.md): HEIF and AVIF image file format decoder and encoder

## Sources

[^1]: https://github.com/pnggroup/libpng/blob/libpng18/LICENSE.md (checked 27 Nov 2026)
