Closed s4cha closed 3 years ago
Hello there We recently migrated from fresco to Coil and we are facing an issue using RoundedCornersTransformation which yields a pixelated image.
fresco
Coil
RoundedCornersTransformation
Any idea where this would come from?
code
imageView.load(item.uri.toString()) { crossfade(true) transformations(RoundedCornersTransformation(8.dp.px.toFloat())) }
library used is io.coil-kt:coil-compose:1.3.0
io.coil-kt:coil-compose:1.3.0
If they're small images it's possible they're getting scaled up. Try adding precision(Precision.EXACT) to your request.
precision(Precision.EXACT)
Worked like a charm, thank you 👍
Hello there We recently migrated from
fresco
toCoil
and we are facing an issue usingRoundedCornersTransformation
which yields a pixelated image.Any idea where this would come from?
code
library used is
io.coil-kt:coil-compose:1.3.0