From EDM2
Jump to: navigation, search
Name libpng
Version 1.5.30 (Sep 2017)
1.6.37 (Apr 2019)
Author Guy Eric Schalnat,
Andreas Dilger,
John Bowler,
Glenn Randers-Pehrson,
Cosmin Truta
Licence Zlib Licence

A multi-platform open source C library for creating, reading and writing Portable Network Graphics (PNG) files. It was originally created as a reference implementation and library for the PNG file format and is therefore written in an old ANSI C89 dialect to make it more portable and usable with even vintage C compilers.


There are currently two binary releases available for OS/2, built for kLIBC and for the emx runtime. The EMX version is actually newer and should suffice in most cases.

There are older versions available on the usual download sites if you are porting older software that relied on older versions of the libpng library, but the API of the library was changed a bit between 1.4 and 1.5 branches, and again between 1.5 and 1.6, so using them might ease porting a bit. However it is recommended if possible to try to change the handling of the library I/O to at the least version 1.5.x as older versions have a nasty memory leaking bug and a few known vulnerabilities as well.