The number one library to manipulate PNG images in Linux
The library is usually installed by default in all modern Linux kernel-based operating systems, if not all distributions, so you will be able to read and write PNG graphics files. Examples and tests are also provided to users in the source package to see if PNG support is fully enabled.
Keep in mind though, that libpng is a library, not a command-line program, which means that you won’t be able to interact with it, except for the ‘libpng-config’ command that offers various command-line options. A manpage is provided too, so you learn how to use it in your projects.
Getting started with libpng
To install the libpng library on your GNU/Linux operating system, if it isn’t already installed or if you want to install a different, newer/older version than the one installed, you must first download the latest version of the library from Softpedia, where it is distributed for free as a source tarball.
Save the TAR archive somewhere on your computer, extract its contents using any archive manager utility, open a terminal emulator application, and move to the location of the extracted archive files (e.g. cd /home/softpedia/libpng-1.6.16).
Then, arrived at the location of the extracted archive files, run the ‘.configure’ command to configure the program and optimize it for your hardware architecture/operating system using available options (run the ‘./configure --help’ command to see these options).
After configuring libpng, run the ‘make’ command to compile it. Finally, after a successful compilation, run the ‘sudo make install’ as a privileged user or the ‘make install’ command as root to install the library system wide.
Reviewed by Marius Nestor, last updated on December 23rd, 2014
In a hurry? Add it to your Download Basket!
- Added ".align 2" to arm/filter_neon.S to support old GAS assemblers that don't do alignment correctly.
- Revised Makefile.am and scripts/*.dfn to work with MinGW/MSYS; renamed scripts/*.dfn to scripts/*.c (Bob Friesenhahn and John Bowler).
- Quiet a "comparison always true" warning in pngstest.c (John Bowler).
- Restored a test on width that was removed from png.c at libpng-1.6.9 (Bug report by Alex Eubanks).
Application descriptionlibpng (PNG library) is an open source and freely distributed collection of routines used to create and manipulate PNG...