Git Product home page Git Product logo

Comments (6)

zjupure avatar zjupure commented on June 6, 2024

Please see Glide docs and run sample project to see how animated webp is loaded.

from glidewebpdecoder.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 6, 2024

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.

zjupure avatar zjupure commented on June 6, 2024

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.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 6, 2024

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.

zjupure avatar zjupure commented on June 6, 2024

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.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.