# Apply a Gamma Correction¶

## Problem¶

Your image or video has the wrong gamma. You need to apply a gamma correction.

## Solution¶

Use the Draft.Image.ApplyGamma() method:

import Draft

inFile = '/path/to/input.exr'
outFile = '/path/to/output.exr'


img.ApplyGamma( 1.0 / gamma )

Where gamma is the gamma correction you want to apply.