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

Support writing WebP format #659

Open
kwin opened this issue Feb 2, 2022 · 8 comments
Open

Support writing WebP format #659

kwin opened this issue Feb 2, 2022 · 8 comments

Comments

@kwin
Copy link

kwin commented Feb 2, 2022

Describe the solution you'd like
As webp is a widely supported standard in browsers it should be possible to write in that format with this library to allow using it on server side for this use case.

@haraldk
Copy link
Owner

haraldk commented Feb 2, 2022

I'd like that too! 😀

@maxim5
Copy link

maxim5 commented Feb 5, 2022

@haraldk I'm sure you've seen https://github.com/sejda-pdf/webp-imageio

@haraldk
Copy link
Owner

haraldk commented Feb 7, 2022

@maxim5 Yes, I believe there are various ImageIO plugins that use the native libwebp for reading/writing through JNI. They probably perform better than our Java implementation, so if you can, use them! 😀

@maxim5
Copy link

maxim5 commented Feb 7, 2022

Yeah, don't have a lot of choices. That project seems to work, but hasn't updated libwebp for quite a while.
So I mean if JNI is ok for you, you can use the same approach and clean it up a bit.

@haraldk
Copy link
Owner

haraldk commented Feb 7, 2022

I have no plans for going the JNI route with TwelveMonkeys.

But I think having several implementations, with different strengths is only a good thing. 👍🏻

@gotson
Copy link
Contributor

gotson commented Mar 12, 2022

Yeah, don't have a lot of choices. That project seems to work, but hasn't updated libwebp for quite a while. So I mean if JNI is ok for you, you can use the same approach and clean it up a bit.

I have worked on that project for a bit. The painful part is to compile the lib and JNI bit together, for multiple platforms. Because it's native code, you need a different compiled binary for each combination of OS and cpu architecture. And you need a specific loader to load the right one.

The issue with that lib is that it's not maintained, I tried to submit PRs to add support for more architectures, but it never went through. I ended up publishing it under my own org on maven central, and it's used in my open source application with some good success. I also use Twelvemonkeys for webp as a backup, since the app only needs to read webp, but never write it.

@EricBlanquer
Copy link

EricBlanquer commented Sep 19, 2024

Hi, is it possible to add support to write WEBP?
I don't want to use another dependency and I'm glad to have this support with ImageIO plugins

@haraldk
Copy link
Owner

haraldk commented Sep 20, 2024

@EricBlanquer It's absolutely possible. I don't have spare time to write it. That's why the issue is tagget with "sponsor needed". But anyone is free to write it and create a PR. I would happily accept it.😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants