java 在java中读写webp格式图像的最佳方式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17861601/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Best way to read and write webp format images in java
提问by gillyb
The normal Imageio Library says it cannot read the Webp format images. Are there any simple methods to read and webp images in java?
正常的 Imageio 库说它无法读取 Webp 格式的图像。有没有什么简单的方法可以在java中读取和webp图像?
回答by Rob
Found this library today: webp-imageio. Haven't tried it out yet, but it looks like it'll do encoding using ImageIO.
今天找到了这个库:webp-imageio。还没有尝试过,但看起来它会使用 ImageIO 进行编码。
回答by kiar
sprd-webpis another java JNI library based on webp-imageio. It is a wrapper around googles libwebp and not a real java implementation.
sprd-webp是另一个基于webp-imageio 的java JNI 库。它是围绕 googles libwebp 的包装,而不是真正的 java 实现。
回答by guido
Java VP8 Decoderis a GPL3 library currently in beta that can read webp image format. It seems there is no encoding facility at the moment.
Java VP8 Decoder是一个 GPL3 库,目前处于测试阶段,可以读取 webp 图像格式。目前似乎没有编码工具。
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).
一种可能的替代方法是使用VLCJ,这是一个用于 VLC 的 Java 绑定库(webp 支持应该在最新版本 afaik 中开箱即用)。
A third library is jvp8, a dual-licensed commercial/GPL native wrapper which allows to use the VP8 video codec.
第三个库是jvp8,这是一个双重许可的商业/GPL 原生包装器,允许使用 VP8 视频编解码器。