Thread
#compose
    Ravi

    Ravi

    1 year ago
    I’m unable to find
    CircleCropTransformation
    for glide lib mentioned in the accompanist documentation.
    import androidx.compose.foundation.Image
    import com.google.accompanist.glide.rememberGlidePainter
    
    Image(
        painter = rememberGlidePainter(
            request = "<https://picsum.photos/300/300>",
            requestBuilder = {
                transformations(CircleCropTransformation())
            },
        ),
        contentDescription = stringResource(R.string.image_content_desc),
    )
    Eric Ampire [MOD]

    Eric Ampire [MOD]

    1 year ago
    It only works with coil, if you are using glide you have to use Modifier.clip(CircleShap)
    Ravi

    Ravi

    1 year ago
    image wont transform to circle shape, if contentScale is fit
    Nthily

    Nthily

    1 year ago
    Yes, there are no
    transformations(CircleCropTransformation())
    in glide
    try to { Modifier.clip(CircleShape), contentScale = ContentScale.Crop } ?
    Akash Amin

    Akash Amin

    1 year ago
    requestBuilder = { circleCrop() }
    Can work too.