Comments (6)
Please see Glide docs and run sample project to see how animated webp is loaded.
from glidewebpdecoder.
The reason I wrote this, is not because of the sample or the docs of Glide.
It's because this repository only mentions how to use its dependency, but not how to actually use it. Not even the simplest way to do it.
from glidewebpdecoder.
There is no difference between jpg/png or gif/webp with Glide when you load without transformation. The exist code can still work well when the image url change to a webp image. So you only need to add dependencies in your build.gradle. Only with BitmapTransformtaion, you need add some extra code to support it. If you are not familiar with Glide, please read docs and write demo with Glide first.
from glidewebpdecoder.
I am familiar with Glide, but not with this library.
You say that once I just use the dependency, and I try to load WebP animation, it will work as if I'm loading a PNG file, even though I've not used a single piece of code from this library?
from glidewebpdecoder.
Yes, Glide annotation processor will do everything for you automatically. You can read the Glide source code and related integration to find the answer. The Library only insert a WebpDecoder into Glide built-in decoder lists to support webp image.
from glidewebpdecoder.
Wow this sounds so cool!
You've created some sort of plugin that gets attached automatically to a different library, and that library uses it without me telling it to do it.
I really want to try it out, but for now I still have this issue of importing the sample: #11
That's why I wanted to try an alternative, of the most simple way to show a WebP animation (directly from file, for example).
from glidewebpdecoder.
Related Issues (20)
- java.lang.IndexOutOfBoundsException
- Support for Glide 4.14.2 HOT 2
- NullPointerException in WebpFrameLoader#onFrameReady HOT 1
- 为什么要默认循环播放,是出于什么考虑? HOT 3
- 加载动图和加载静态图片能合并吗? HOT 2
- Support for KSP HOT 9
- 希望公开OnEveryFrameListener接口及其set方法 HOT 1
- 加载webp动图,结果图片缩小了 HOT 1
- 使用协程好像会出现多线程问题 HOT 1
- 首帧预览 功能 HOT 2
- 在 onResourceReady call WebpDrawable#stop() 沒有辦法停下動畫 HOT 1
- ImageView宽高为wrap_content时webp动图问题 HOT 3
- How to use in SpannableString with ImageSpan ? HOT 6
- Request: update Glide version HOT 2
- Can't use repository for some reason HOT 5
- 配合共享元素转场动画掉帧卡顿
- Needs to support 4.13.2 HOT 4
- WebpDecoder 多线程问题 HOT 1
- Why not consider adding a method to stop at what frame? HOT 2
- 加载Duration小于20毫秒的webp图片动得很慢 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glidewebpdecoder.