Format

filter(type=“drop_shadow”, …)

Args

x: Shadow horizontal offset (defaults to 1)

Applies a drop shadow to this image. This is a combination of multiple filters, since it will apply an outline if offset is included, a Gaussian blur to the shadow, and will underlay the shadow beneath the image.

You can also think of this filter as an outer glow.

If you use a size less than 0, the shadow will appear inside the image instead. This would be an inset shadow, or inner glow.

See also