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...
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Found this library today: webp-imageio. Haven't tried it out yet, but it looks like it'll do encoding using ImageIO.
回答2:
sprd-webp is another java JNI library based on webp-imageio. It is a wrapper around googles libwebp and not a real java implementation.
回答3:
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.