WebP library for java? [closed]

2019-02-08 06:31发布

问题:

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.



标签: java webp