GithubHelp home page GithubHelp logo

Comments (6)

colinrtwhite avatar colinrtwhite commented on August 15, 2024 1

Confirmed. android.resource Uris that point to a vector drawable (or anything that can't be handled by BitmapFactory currently won't load correctly. Have an idea in mind of how to fix this and will make sure the fix makes it into 0.7.0.

As a work around you can pass the resource ID directly to load: .load(R.drawable.image)

from coil.

colinrtwhite avatar colinrtwhite commented on August 15, 2024

Thanks for the report. I'll take a look into this later today.

from coil.

ediTLJ avatar ediTLJ commented on August 15, 2024

As a work around you can pass the resource ID directly to load: .load(R.drawable.image)

Does that work for you? I also tried the resource id directly (with several vector drawables) and it doesn't seem to work.

from coil.

colinrtwhite avatar colinrtwhite commented on August 15, 2024

Closing this as it's fixed by #75. The fix will soon be released in 0.7.0 or you can depend on the development snapshots if you need it before then.

from coil.

audkar avatar audkar commented on August 15, 2024

@colinrtwhite this still doesn't work if referenced URI is from different package.

I updated initial example patch to reproduce issue

coil version 0.7.0

from coil.

colinrtwhite avatar colinrtwhite commented on August 15, 2024

Thanks, I'll take a look into this next week (away on holiday this week).

from coil.

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.