Image.Plug.Pipeline.Ops.Tint (image_plug v0.1.0)

Copy Markdown View Source

Single-colour tinted-monochrome operation.

The image is desaturated and the resulting luminance is scaled by the requested tint colour: white pixels become the tint colour, black pixels remain black. Maps to imgix's monochrome=<hex> and ImageKit's e-monochrome=<hex>.

:color is normalised to a 3-element [r, g, b] 0..255 list by the provider parser.

Summary

Types

t()

@type t() :: %Image.Plug.Pipeline.Ops.Tint{color: [non_neg_integer()]}