Skip to content

Contrast

Returns a new image with the contrast adjusted by the given factor.

Examples

Using this image as our input:

source image

image.contrast(2.0)

image

image.contrast(0.5)

image