Open main menu

libpng is the official Portable Network Graphics (PNG) reference library (originally called pnglib). It is a platform-independent library that contains C functions for handling PNG images. It supports almost all of PNG's features, is extensible, and has been widely used and tested for over 23 years.[1] libpng is dependent on zlib for data compression and decompression routines.

Developer(s)Guy Eric Schalnat,
Andreas Dilger,
Glenn Randers-Pehrson, et al.
Stable release
1.6.36 / December 1, 2018; 3 months ago (2018-12-01)
Repository Edit this at Wikidata
Written inC
Operating systemCross-platform
TypeImage library
Licenselibpng License

libpng is released under the libpng license, a permissive free software licence, and is free software. It is frequently used in both free and proprietary software, either directly or through the use of a higher level image library. In 2017 a 21 year old bug was fixed.[2]

As of 2017 the latest versions in the 1.6.x and 1.5.x branches were considered as release versions, while 1.4.x, 1.2.x, and 1.0.x were considered as legacy versions getting only security fixes.[3] All vulnerability warnings and crash bugs are published on the main page.[1]

External linksEdit


  1. ^ a b Greg Roelofs (2019). "libpng".
  2. ^ Richard Chirgwin (2017-01-03). "Libpng library gets fix for truly ancient bug". The Register. Retrieved 2017-10-08.
  3. ^ "PNG Reference Library: libpng". 2017-09-29.