canvas — Phatch v0.2 documentation

### Navigation

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

# canvas

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

  Bases: `core.models.Action`

  Crop or expand the canvas without scaling

  static `init`()
  `interface`(fields)
  static `pil`(image, new_size, centering, background_color, opacity, old_size=None)
  `values`(info)

`actions.canvas.` `canvas_size`(image, new_size, centering, background_color, opacity, old_size=None)

`actions.canvas.` `init`()

### Navigation

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