coil-transformations
4.0.0indexedImage transformations for Coil, including color filters, crop/grayscale/square crops, blur and mask, GPU-accelerated filters, and face-centered transformation for automated face-aware cropping.
Image transformations for Coil, including color filters, crop/grayscale/square crops, blur and mask, GPU-accelerated filters, and face-centered transformation for automated face-aware cropping.
Image transformations for Coil.
Add the library to your app build.gradle:
implementation("com.commit451.coiltransformations:transformations:latest.version.here")
and for GPU (native) transformations (relies on GPUImage):
# Android only
implementation("com.commit451.coiltransformations:transformations-gpu:latest.version.here")
and for Google MLKit Face detection transformations:
# Android only
implementation("com.commit451.coiltransformations:transformations-face-detection:latest.version.here")
These transformations are already supported in Coil itself (no need for this library):
From the base library (transformations):
Android only
From the GPU library (transformations-gpu)
Android only
From the face detection library (transformations-face-detection)
Android only
To load an image into a Composable with transformations:
AsyncImage(
model = ImageRequest.Builder(LocalPlatformContext.current)
.data(imageUrl)
.transformations(GrayscaleTransformation())
.crossfade(true)
.build(),
contentDescription = sample.name,
contentScale = ContentScale.Crop,
modifier = Modifier
.fillMaxWidth()
.aspectRatio(1f)
.clip(RoundedCornerShape(8.dp)),
)
See a preview of the transformations here
Inspired by Glide Transformations by wasabeef. Thanks of course to Coil contributors for making a great image loading library.
Copyright 2026 Commit 451
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this except compliance the License.
You may obtain a copy of the License at
https:
Unless applicable law agreed to writing, software
distributed under the License distributed an BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied.
See the License the specific language governing permissions
limitations under the License.
Surfaced from shared tags and platforms — no rankings paid for.