coil-kt / coil

Image loading for Android and Compose Multiplatform.

Home Page:https://coil-kt.github.io/coil/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image getting scaled to center crop when I added transformation to it

Krushikar opened this issue · comments

Whenever I added transformation to image it getting scaled to center crop. I had tried setting scale type to FIT and FITXY by
programmatically and by XML but none of the method works.

I want to scale the image to fit imageview and want to set the rounded corner for image, but whenever I tried to add transformation to the image it's getting scaled to center crop.

library version
implementation("io.coil-kt:coil:2.0.0-rc02")

Please ask usage questions in Github Discussions.