
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 file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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 file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.