Skip to content

Transformations

Transformations allow you to modify the pixel data of an image before the Drawable is returned from the request.

By default, Coil comes packaged with 4 transformations: blur, circle crop, and grayscale, and rounded corners.

Transformations only modify the pixel data for static images. Adding a transformation to an ImageRequest that produces an animated image will convert it to a static image so the transformation can be applied. To transform the pixel data of each frame of an animated image, see AnimatedTransformation.

See the API doc for more information.

Note

If the Drawable returned by the image pipeline is not a BitmapDrawable, it will be converted to one. This will cause animated drawables to only draw the first frame of their animation.