A graphics and command line tools to optimize PNGs and convert other lossless formats (GIF, BMP, TGA) into optimized PNGs.
Install build tools. On Ubuntu, open a terminal then execute:
sudo apt install build-essential
For PngOptimizer, install GTK+ 3 development library:
sudo apt install libgtk-3-dev
This option is only available on Linux. Open a terminal then execute:
make
sudo make install
These commands build and install both PngOptimizer and PngOptimizerCL in release mode.
Individual builds build in debug mode by default.
Execute command: make
or make CONFIG=release
These commands build in debug and release configuration respectively. The build results are located in the linux-debug/ or linux-release/ directories.
On Linux, make
accept other targets: clean, run, install, uninstall, cov. Open sdk/chulib.mk for a description at the top of the file.
For PngOptimizerCL, do the same except that you should change directory to projects/pngoptimizercl instead.
The final build result, PngOptimizer.exe, is located into the Win32-Debug, Win32-Release, x64-Debug or x64-Release sub-directory of the PngOptimizer directory.
For PngOptimizerCL, do the same except that you should change directory to projects/pngoptimizercl instead.
The SDK libraries have subdirectories where build files are stored:
To build all and create the packages to be downloaded, call from a terminal:
distrib/make-distrib.bat
distrib/make-distrib.sh
Packages will be created in the distrib/download directory.
On Linux, to build all and install all you can also use the top level Makefile. This is useful when creating a binary Debian package.