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 sepia.ex
Raw

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

defmodule Image.Plug.Pipeline.Ops.Sepia do
@moduledoc """
Sepia tone operation. `:strength` is a `[0.0, 1.0]` blend
factor between the identity (`0.0`) and the full sepia matrix
(`1.0`). Maps to imgix's `sepia=N` (`N / 100`) and Cloudinary's
`e_sepia[:N]` (`N / 100`, default full sepia).
"""
@type t :: %__MODULE__{strength: float()}
defstruct strength: 1.0
end