Android 上 WebP 图像的目标特定文件大小
我很清楚这通常不是一个值得考虑的有用的事情,但是我遇到了一种(有点人为的)情况,我想为 WebP 图像指定特定的文件大小。 显然,Google 自己的桌面版 cwebp 工具能够定位特定大小,但是在梳理了位图文档以查找有关此参数调整的任何提及之后,我什么也没发现。我也无法搜索其他 Java 库,因为似乎大多数人都对 Android 原生提供的内置编码/解码功能感到满意。
I'm well aware that this is usually not a useful thing to think about, however I have encountered a (somewhat contrived) situation where I would like to target a specific file size for a WebP image. Apparently, googles own cwebp tool for desktop has the ability to target a specific size, but I after combing the Bitmap docs for any mention of the tuning of this parameter I found nothing. I haven't been able to search for other Java libraries either, because it seems that most people are content with the builtin encoding/decoding ability natively available in Android.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论