EnderIO
EnderIO copied to clipboard
Added a way to automatically minimize/optimize all PNG texture files
- This PR adds the
optimizePng
task which usesoptipng
(which needs to be on thePATH
) to optimize all PNG texturefiles.
This includes stripping metadata and encoding the image more optimally (like reducing the color pallette and searching for the optimal compression parameters). This compression is completely lossless. - It also optimizes all existing texture files to show how much it can save.
If desired I can also add a tiny snippet that will minimize all JSON files in the resulting jars.
It's a tiny reduction, though it's essentially free. It also should optimize startup times slightly.