coil-kt / coil

Image loading for Android and Compose Multiplatform.
https://coil-kt.github.io/coil/
Apache License 2.0
10.83k stars 664 forks source link

SVG tint doesn't work #2702

Closed jyh149129 closed 3 days ago

jyh149129 commented 3 days ago

Describe the bug we want change images(SVG) tint color when image selected:

QQ20241119-124806

images color doesn't any change when image selected. but glide works fine.

Version 3.0.2 ,android 13

colinrtwhite commented 3 days ago

Does BitmapDrawable support this state? You might need to register SvgDecoder.Factory(renderToBitmap = false), though this will reduce rendering performance as it won't prerender the bitmap on a background thread.

colinrtwhite commented 3 days ago

Seems like this might be an issue with crossfade. Are you using that method?

colinrtwhite commented 3 days ago

Fixed here: https://github.com/coil-kt/coil/pull/2704. Thanks for reporting!