Trim operation. Removes border pixels from the working image.
Two modes:
:border— auto-detect a uniform border colour and trim it. The optional:colorfield overrides the detected colour;:thresholdcontrols similarity sensitivity (0..255).:explicit— trim a fixed number of pixels from each edge given by the:top,:right,:bottom,:leftfields.
Summary
Types
@type mode() :: :border | :explicit
@type t() :: %Image.Plug.Pipeline.Ops.Trim{ bottom: non_neg_integer(), color: nil | String.t(), left: non_neg_integer(), mode: mode(), right: non_neg_integer(), threshold: non_neg_integer(), top: non_neg_integer() }