Packages

A pluggable Plug-based image server. Maps URLs to a canonical image processing pipeline executed via the Image library, with named, stored variants. Ships a Cloudflare Images URL provider.

Current section

Files

Jump to
image_plug lib image plug pipeline ops vignette.ex
Raw

lib/image/plug/pipeline/ops/vignette.ex

defmodule Image.Plug.Pipeline.Ops.Vignette do
@moduledoc """
Radial vignette darkening operation. `:strength` is in
`[0.0, 1.0]` and matches `Image.vignette/2`'s argument of
the same name. Maps to Cloudinary's `e_vignette[:N]`
(`N / 100`, default `0.5`).
"""
@type t :: %__MODULE__{strength: float()}
defstruct strength: 0.5
end