EnderIO icon indicating copy to clipboard operation
EnderIO copied to clipboard

Added a way to automatically minimize/optimize all PNG texture files

Open BrainStone opened this issue 4 years ago • 1 comments

  • This PR adds the optimizePng task which uses optipng (which needs to be on the PATH) 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.

BrainStone avatar Feb 26 '20 00:02 BrainStone

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.

BrainStone avatar Feb 26 '20 10:02 BrainStone