Hi, when i tried to use Coil image to load SVG, it throws this error in my log:
can't render image: load image failed
i already installed SvgDecoderFactory but it wont load ? But it loads just fine on android platform. Does anyone knows how to solve this ? thank you.
ferdialif02
10/21/2024, 12:50 PM
Turns out the SVG image have PNG image embedded in it, but not sure why it fails to load on non Android platform ?
ferdialif02
10/21/2024, 12:51 PM
Then i decided to extract the base64 from the svg and then use toImageBitmap extension function to load the Image