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 the option to use multithreading when encoding webp #287

Merged
merged 1 commit into from Apr 23, 2024

Conversation

leeshinyook
Copy link
Contributor

Hello.

First of all, thank you for creating an awesome JVM library and providing it as open source.

I'm using the scrimage library for webp encoding. It seems to be using cwebp for encoding, and I can apply several option flags, including noalpha. I think it would be nice to additionally support the (-mt) multithread option provided by cwebp.

The multithread feature is already provided in libwebp-1.3.2 cwebp, so if it is provided as an optional flag, I think it will work fine. I've added a new constructor for WebpWriter (keeping the old ones), and I don't think there should be any problems with backwards compatibility since the mt option defaults to false.
If you don't mind, I hope you will accept my MR.

스크린샷 2024-04-12 오후 11 14 51

@sksamuel sksamuel merged commit 450b958 into sksamuel:master Apr 23, 2024
1 check passed
@sksamuel
Copy link
Owner

great thanks

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.

None yet

2 participants