Small size of svg images
Closed this issue · 2 comments
klusi commented
After update to 1.5.1 (from 1.3.1), there is broken size of some downloaded SVG images. I would like the image to fill the entire image view. Here's en example of two similar SVG images and comparison with Coil-Compose:
As you can see, one of the images has broken size and setting contentScale or other imageLoader options has no effect to it.
Here's my code:
Image(
painter = rememberAsyncImagePainter(
url = url,
contentScale = ContentScale.FillWidth,
),
contentDescription = null,
modifier = Modifier
.size(50.dp)
.background(color = Color.Red),
contentScale = ContentScale.FillWidth,
)
I have attached a demo project - ImageDemo.zip
Versions:
ImageLoader - 1.5.1
Kotlin - 1.8.20
Compose - 1.4.0
Gradle - 8.0.2
qdsfdhvh commented
Sorry, the configuration was changed incorrectly and the uploaded version code is missing, I am re-uploading it now.