shadow — Phatch v0.2 documentation

### Navigation

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

# shadow

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

  Bases: `core.models.Action`

  Drops a blurred shadow under a photo

  static `init`()
  `interface`(fields)
  static `pil`(image, horizontal_offset=5, vertical_offset=5, background_color=(255, 255, 255, 0), shadow_color=4473924, border=8, shadow_blur=3, force_background_color=False, cache=None)

    Add a gaussian blur drop shadow to an image.

    Parameters: | image – The image to overlay on top of the shadow. type – PIL Image offset (tuple of integers) – Offset of the shadow from the image as an (x,y) tuple. Can be positive or negative. background_color – Background color behind the image. shadow_color – Shadow color (darkness). border – Width of the border around the image. This must be wide enough to account for the blurring of the shadow. shadow_blur – Number of times to apply the filter. More shadow_blur produce a more blurred shadow, but increase processing time.

  `values`(info)

`actions.shadow.` `drop_shadow`(image, horizontal_offset=5, vertical_offset=5, background_color=(255, 255, 255, 0), shadow_color=4473924, border=8, shadow_blur=3, force_background_color=False, cache=None)

  Add a gaussian blur drop shadow to an image.

  Parameters: | image – The image to overlay on top of the shadow. type – PIL Image offset (tuple of integers) – Offset of the shadow from the image as an (x,y) tuple. Can be positive or negative. background_color – Background color behind the image. shadow_color – Shadow color (darkness). border – Width of the border around the image. This must be wide enough to account for the blurring of the shadow. shadow_blur – Number of times to apply the filter. More shadow_blur produce a more blurred shadow, but increase processing time.

`actions.shadow.` `init`()

### Navigation

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