Is there a library in java for creating/saving image files in the WebP format ?
I couldn't find anything that does this, except for googles encoder which is an exe file, and I don't want to have to execute some .exe from my code to do this...
Found this library today: webp-imageio. Haven't tried it out yet, but it looks like it'll do encoding using ImageIO.
sprd-webp is another java JNI library based on webp-imageio. It is a wrapper around googles libwebp and not a real java implementation.
Java VP8 Decoder is a GPL3 library currently in beta that can read webp image format. It seems there is no encoding facility at the moment.
A possible alternative would be using VLCJ, a Java bindings library for VLC (webp support should be available out-of-box in lastest versions afaik).
A third library is jvp8, a dual-licensed commercial/GPL native wrapper which allows to use the VP8 video codec.
来源:https://stackoverflow.com/questions/17861601/webp-library-for-java