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

WEBP encoding with compression? #2186

Closed
Directory opened this issue Mar 27, 2024 · 2 comments
Closed

WEBP encoding with compression? #2186

Directory opened this issue Mar 27, 2024 · 2 comments

Comments

@Directory
Copy link

The docs for the WebPEncoder type only has a new_lossless method. Is it possible to make an instance of the webp encoder that can take a compression value similarly to how JpegEncoder::new_with_quality does it? the webp crate can do it but that crate is outdated and no longer works with the DynamicImage type from image 0.25.

@fintelia
Copy link
Contributor

What specifically are you trying to achieve? If you only want to make sure that your webp file will be compressed, then the new_lossless method will be fine because that applies lossless compression.

If you're hoping to use lossy compression, however, that is currently not supported. You can read more here: #1984

@fintelia fintelia closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2024
@Directory
Copy link
Author

as of webp 0.2.7 it now internally also supports image 0.25

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

No branches or pull requests

2 participants