-
Notifications
You must be signed in to change notification settings - Fork 5
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
What version of webp-imageio is used? #67
Comments
Hey @joostoudeman 👋 Sorry I somehow missed your comment :/ To clarify on what this fork is: I failed to build the binaries myself, so this repository serves as a sort of wrapper for binaries https://github.com/gotson/webp-imageio has built (including the ARM one from gotson#1 I needed for https://github.com/usefulness/easylauncher-gradle-plugin). Answering your question directly: I don't know which version of libwebp the binaries were compiled with, but they should match the ones published on gotson@4b29c51 |
Hey, That's fine. I could of course try to make a pull request on your repo, including rebuilds. Would that work? |
So, I just made a pull request to get the sharp_yuv support in there. Of course you can always pick the changes you would like to have, and drop those you don't want. |
Thanks! I have little to no knowledge on building native binaries/bindings :/ I'm willing to merge your PR in the full scope (and I truly appreciate the effort 🙇), but can you also help me understand:
|
Building the binaries is something I think is convenient to have in the project, hence the 'libwebp-jni' folder I added. In libwebp-jni, there's a git submodule pointing to the libwebp of google, checking out a new tag is how to prepare to build a newer version.
I also see the branch fails some checks. I also can't seem to find out why it doesn't build. Do you know? |
Ok, surprisingly I was able to build binaries locally - installing I tried to read the |
Indeed docker knowledge will help a lot, as well as cmake. |
Thanks. I'll plan to do some work this weekend to:
I'll try to publish a release in 2-3 days from now, and hopefully I'll be finally able to answer question from this issue's title 😛 |
Okay, so my attempt to do Maybe I don't understand something, but I expected to see different images produced after toggling the Would you be able to help me to fix a failing test here:
|
I think I've got it 🎉 (Or at least I have a passing test now 😅) As a result basically re-did the most of the native layer, because it turned out the existing bindings (dating back the original luciad project, 3 forks ago 😅) were out-of-sync with that Java code expected 🤷 I managed to expose almost all options available in the libwebp project, except few enums(?) which I wasn't sure how to map using JNI. Things look promising so far 🤞 |
You've been busy. I'll see if I can puzzle out how I fixed that, and get a MR for that. The one example I know is that the compilation will not work on RedHat 8 machines (yes, some people still use that one...) |
oh :/ Do you mean when building binaries (running the |
The use via ImageIO. |
I can finally answer the question from the title:
this ImageIO wrapper ships with binaries built from v1.3.0 of libwebp 🎉 I hope I didn't break anything since your last PR 🤞 All the changes, seem to work for me locally, and I hope you'll be able to leverage them as well. 0.3.0 should shortly be available on |
In September 2023 a critical security issue was found in libwebp, see https://snyk.io/de/blog/critical-webp-0-day-cve-2023-4863/ |
You can find binaries built from 1.4.0 tag in #195 |
Thanks so much, I didn't realize they were already in here. This seems to be the most active fork of webp-imageio, so I'll use this one instead of the original. |
Hey,
I've got the need to support the sharp_yuv property of the wep_imageio.
So far no other fork on github seems to have this, so I did write my own solution for it at https://github.com/joostoudeman/webp-imageio. However I don't want to add another fork to the maven central, and spread out the options, and the project I originally forked from is no longer maintaining.
So I would like to send a pull request to your project, but I don't know if the precompiled libraries you use are up to date enough. Can you tell me what version it is?
The text was updated successfully, but these errors were encountered: