23

The normal Imageio Library says it cannot read the Webp format images. Are there any simple methods to read and webp images in java?

3 Answers 3

4

Found this library today: webp-imageio. Haven't tried it out yet, but it looks like it'll do encoding using ImageIO.

4
  • 1
    Yep, i found it recently as well, and i'm currently trying it out. Thanks! :)
    – gillyb
    Oct 6, 2013 at 6:51
  • 11
    It seems it calls native code from java (it needs .so or .dll): it is not a standalone solution for java. :(
    – zenbeni
    Oct 29, 2013 at 9:43
  • 4
    Is that the reason, why its not available in maven central repo ?
    – Milli
    Aug 31, 2015 at 11:13
  • Is there any library for decoding animated WebP ? Oct 27, 2018 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.

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.

4
  • 3
    These are both solutions that allow webp decoding, but i need an encoding solution in java...
    – gillyb
    Jul 28, 2013 at 6:40
  • aren't vlc trancoding capabilities available in vlcj? it seems they are: capricasoftware.co.uk/projects/vlcj/faq.html
    – guido
    Jul 29, 2013 at 16:22
  • yep, but i'm still not sure how i use this to convert an image to webp format... ?
    – gillyb
    Aug 4, 2013 at 7:38
  • had you time to try with jvp8?
    – guido
    Aug 19, 2013 at 13:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.