---
application: "Intervention Image"
version: "Version 2"
status: "eol"
---

# Image::contrast

## Change the color contrast of the current image



> public Intervention\Image\Image contrast(integer $level)

Changes the contrast of the current image by the given **level**. Use values between ```-100``` for min. contrast ```0``` for no change and ```+100``` for max. contrast.

### Parameters

#### level
Level of contrast change applied to the current image. Use values between `-100` and `+100`.

### Return Values
Instance of `Intervention\Image\Image`

### Examples

```php
// create new Intervention Image
$img = Image::make('public/foo.jpg');

// increase brightness of image
$img->contrast(65);
```

### See also

- [brightness](https://image.intervention.io/v2/api/brightness.md)
- [gamma](https://image.intervention.io/v2/api/gamma.md)
- [colorize](https://image.intervention.io/v2/api/colorize.md)
- [greyscale](https://image.intervention.io/v2/api/greyscale.md)
- [invert](https://image.intervention.io/v2/api/invert.md)
- [pixelate](https://image.intervention.io/v2/api/pixelate.md)

---

## Become a Sponsor

### Intervention Image needs your help to keep the project going

Intervention Image is non-commercial, open source licensed and completely free to use. The considerable
effort required to maintain and develop the software is only possible with the financial support
of sponsors. There are two ways in which you can support this project.

- Support via [GitHub Sponsors](https://github.com/sponsors/Intervention)
- Support via [Ko-Fi](https://ko-fi.com/interventionphp)