|
pngz
easy png io library that converts all images into 8 bit RGBA.
|
an easy png io interface for the standard <png.h> header that converts all images to 8bit RGBA pngs for basic pixel manipulation.
standard png library (<png.h>), available through apt.
on windows you can find the download here, or use wsl.
the install script compiles a static and shared library into ./lib. the shared library and header are copied to /usr/local/lib and /usr/local/bin. you may also need to update /etc/ld.so.conf and run ldconfig for your system to recognize the library.
include with #include "pngz.h" and link when compiling, including the standard lpng dependency.
alternatively, you can compile the libraries with make and copy to a project location. if both static and shared libraries are found, the linker gives preference to linking with the shared library unless the -Bstatic option is used.
finally, you can always simply copy pngz.c and pngz.h to your project and compile them with your other files.