The normal Imageio Library says it cannot read the Webp format images. Are there any simple methods to read and webp images in java?
Asked
Active
Viewed 2.0k times
3 Answers
4
Found this library today: webp-imageio. Haven't tried it out yet, but it looks like it'll do encoding using ImageIO.

Rob
- 1,351
- 1
- 11
- 11
-
1Yep, i found it recently as well, and i'm currently trying it out. Thanks! :) – gillyb Oct 06 '13 at 06:51
-
11It seems it calls native code from java (it needs .so or .dll): it is not a standalone solution for java. :( – zenbeni Oct 29 '13 at 09:43
-
4Is that the reason, why its not available in maven central repo ? – Milli Aug 31 '15 at 11:13
-
Is there any library for decoding animated WebP ? – android developer Oct 27 '18 at 22:52
1
sprd-webp is another java JNI library based on webp-imageio. It is a wrapper around googles libwebp and not a real java implementation.

kiar
- 76
- 2
0
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.

guido
- 18,864
- 6
- 70
- 95
-
3These are both solutions that allow webp decoding, but i need an encoding solution in java... – gillyb Jul 28 '13 at 06:40
-
aren't vlc trancoding capabilities available in vlcj? it seems they are: http://www.capricasoftware.co.uk/projects/vlcj/faq.html – guido Jul 29 '13 at 16:22
-
yep, but i'm still not sure how i use this to convert an image to webp format... ? – gillyb Aug 04 '13 at 07:38
-