autocontrast — Phatch v0.2 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- actions »

# autocontrast

class `actions.autocontrast.` `Action`(**options)

  Bases: `core.models.Action`

  Maximize image contrast

  static `init`()
  `interface`(fields)
  static `pil`(image, amount=100.0, cutoff=0)
    Apply a filter - amount: 0-1 - repeat: how many times it should be repeated

`actions.autocontrast.` `autocontrast`(image, amount=100.0, cutoff=0)
  Apply a filter - amount: 0-1 - repeat: how many times it should be repeated

`actions.autocontrast.` `init`()

### Navigation

- index
- modules |
- next |
- previous |
- Phatch v0.2 documentation »
- actions »