bumptech / glide

An image loading and caching library for Android focused on smooth scrolling
https://bumptech.github.io/glide/
Other
34.58k stars 6.12k forks source link

How to use Glid load webp and animated webp? #2765

Open meikaiss opened 6 years ago

meikaiss commented 6 years ago

There is a way to use glide load webp.

需要使用glide加载webp图片的同学请看这里 https://github.com/roths/GlideWebpSupport 这个库 借助了 fresco-webp 库 的解析 来 扩展 glide的 解码器, 实现 glide 加载 webp, 亲测有效。

meikaiss commented 6 years ago

571

This library GlideWebpDecoder can extend glide to load both webp and animated webp. I have tried, it's really useful. https://github.com/zjupure/GlideWebpDecoder

GlideWebpSupport library can only load static webp image. Some Android machine can load animated webp, some not.

BrainCrumbz commented 6 years ago

Just to mention that the underlying GlideWebpDecoder anchor provided above is broken: it reads ok, but when you click on it, target is different and is broken.
Working anchor is https://github.com/zjupure/GlideWebpDecoder