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

Codec Request: pngquant #62

Open
gowy222 opened this issue Aug 18, 2024 · 1 comment
Open

Codec Request: pngquant #62

gowy222 opened this issue Aug 18, 2024 · 1 comment
Labels
feature-request help wanted Extra attention is needed

Comments

@gowy222
Copy link

gowy222 commented Aug 18, 2024

Is your feature request related to a problem? Please describe.
oxipng speed is to slow if img > 10MB
500KB png file still need 2.3s.
The compression ratio is only about 20-30

however..
[pngquant](https://pngquant.org/) is a PNG compressor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format with alpha channel (often **60-80%** smaller than 24/32-bit PNG files). Compressed images are fully standards-compliant and are supported by all web browsers and operating systems.

lets try this?

@jamsinclair
Copy link
Owner

This library focuses on ports of existing codecs from another project, https://github.com/GoogleChromeLabs/squoosh/tree/dev/codecs.

I don't have the bandwidth myself to work on this, but I would welcome and support any PR attempts to add pngquant.

To run Oxipng faster, I would suggest making sure the multithreaded code is running correctly

It may be possible to get better compression by adjusting the compression level https://github.com/jamsinclair/jSquash/blob/main/packages/oxipng/meta.ts#L28

@jamsinclair jamsinclair added the help wanted Extra attention is needed label Aug 19, 2024
@jamsinclair jamsinclair changed the title png > Pls support https://lib.rs/crates/imagequant [pngquant lib in rust!] Codec Request: pngquant Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants