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

Optimize Image and Add to Additional Location (Ref: #596) #597

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

Conversation

Zallb
Copy link
Contributor

@Zallb Zallb commented Jan 23, 2025

This pull request optimizes the image initially included in PR #596 with Zopflipng. Additionally, replacing the old image that was previously missed in the ip2c.

Please review the changes and inform me of any other locations where the old flag might still be in use.

Zallb added 2 commits January 23, 2025 13:06
Optimized with Zopflipng
Optimized with Zopflipng
@Fernando-A-Rocha
Copy link
Contributor

This is not your fault, but ideally we shouldn't have duplicated flag images in the official resources. If we're keeping them, they should be centralized in 1 res.

@AlexTMjugador
Copy link
Member

AlexTMjugador commented Jan 23, 2025

This PR is nice, although I wonder why you specifically chose Zopflipng for the optimization, because as far as I am aware it's a mostly unchanging piece of software that isn't getting improvements these days.

Did you try out other optimizers, like Oxipng? (Disclaimer: I'm a Oxipng contributor.)

@Zallb
Copy link
Contributor Author

Zallb commented Jan 23, 2025

This PR is nice, although I wonder why you specifically chose Zopflipng for the optimization, because as far as I am aware it's a mostly unchanging piece of software that isn't getting improvements these days.

Did you try out other optimizers, like Oxipng? (Disclaimer: I'm a Oxipng contributor.)

Because most MTA assets (this repo included) use the same tool to optimize images (https://forum.multitheftauto.com/topic/119032-tool-png-optimizer)

Maybe if Oxipng well outperforms this tool, it might be worth to have everything re-optimized.. Last time I downloaded the installer I was shocked by the 100+ MB size

@AlexTMjugador
Copy link
Member

I see, I was not aware of that forum post. It's fair enough to try to keep things simple by standardizing on a single PNG optimizer.

On the topic of Oxipng's install size, it'd be interesting to note where you're getting it from, because the upstream CLI binaries for the v9.1.3 release are only around ~600 KiB big. So any significant size difference ought to be caused due to additional features or bundled software.

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.

3 participants