Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BrainStone
Copy link
Contributor

  • 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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant