But in this way how can i avoid loading image twice(one is
rememberCoilPainter
and 2nd is to get color palette) ?
z
Zun
06/06/2021, 6:15 PM
I am searching for the same thing. As far as I can tell, Coil will load from cache if the image is already loaded
c
cb
06/07/2021, 9:05 AM
Yes exactly. It's much better to let Coil load a small image for Palette to use, than try and pass the large displayed bitmap around just for Palette to resize it anyway.