mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 23:17:19 +00:00

An improved version of the wesnoth-optipng shell script. Supports multiple jobs at a time. ( -j ) Accepts a threshold for discarding images which were only reduced by a few bytes. ( -t 15 will only save images that were reduced in size by at least 15 %). Niceness can be set using the -n switch. Usage: cd <directory> woptipng . ../some/dir ../some/some_file.png The script should achive better compression ratios than the previous script. The previous script was running optimizations in an unconditional loop and, at the end, did not save the image if pixel colors changed. This implies if *one* of the crushers did a bad job and changed the images content in a bad way, *none* of the possibly good optimizations by the other crushed would be saved. Woptipng checks the image every time after a crusher touched it and only reverts a single optimization if it was bad leaving possibility for the other tools to still perform a good job and reduce size of the image.
This is a directory of miscellaneous developer tools for Battle for Wesnoth, mostly to support packaging, code integrity checks, and control of the Wesnoth servers. Tools that work on data (WML, maps, images, sounds) no longer belong here. Go to data/tools for those.