Skip to main content
.contrast(amount: number)
amount
number
required
The contrast adjustment. 0 produces flat gray, 1 is the original contrast, and values greater than 1 increase contrast.

Support

Usage

Increase contrast

Image({ url: "photo.jpg" })
    .resizable()
    .contrast(1.5)

Reduce contrast

Image({ url: "photo.jpg" })
    .resizable()
    .contrast(0.5)

See Also