# GlideWebpSupport **Repository Path**: asured/GlideWebpSupport ## Basic Information - **Project Name**: GlideWebpSupport - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-24 - **Last Updated**: 2023-11-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GlideWebpSupport 该项目不再维护,推荐使用[GlideWebpDecoder](https://github.com/zjupure/GlideWebpDecoder) # Glide 4.7.1 Support Webp , use fresco-webp 1.9.0 add this code into Application.onCreate 添加下面的代码就能支持webp静态/动态图 ``` // webp support ResourceDecoder decoder = new WebpResourceDecoder(this); ResourceDecoder byteDecoder = new WebpBytebufferDecoder(this); // use prepend() avoid intercept by default decoder Glide.get(this).getRegistry() .prepend(InputStream.class, Drawable.class, decoder) .prepend(ByteBuffer.class, Drawable.class, byteDecoder); ``` 加载网络图片需要添加oktthp网络集成库的依赖: ``` // enable load remote webp compile "com.github.bumptech.glide:okhttp3-integration:4.6.1" ```