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

Oxipng #14

Merged
merged 2 commits into from
Sep 23, 2023
Merged

Oxipng #14

merged 2 commits into from
Sep 23, 2023

Conversation

retep998
Copy link
Member

This should remove the need for an external program like optipng.

@tomodachi94
Copy link
Member

GoogleChromeLabs/squoosh#689 could help for comparing performance and speed when comparing Oxipng with OptiPNG.

oxipng::optimize(
&oxipng::InFile::Path(path),
&oxipng::OutFile::Path(None),
&oxipng::Options::max_compression(),
Copy link
Member

@tomodachi94 tomodachi94 May 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
&oxipng::Options::max_compression(),
&oxipng::Options::max_compression(),
&oxipng::Deflaters::Zopfli(),

The Zopfli deflater is slightly more resource-intensive but results in smaller images that are comparable to OptiPNG. We should compare the benefits and drawbacks of using Zlib (default) or Zopfli.

No longer fails when the tilesheet image is unchanged.
@retep998 retep998 merged commit 287259f into master Sep 23, 2023
6 checks passed
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.

2 participants