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

Copy Markdown View Source

ICC-profile-driven colourspace conversion. Distinct from Ops.Colorspace (which uses libvips' named-interpretation modes); this op invokes Image.to_colorspace/3 and runs an actual profile-based transform.

Used to map provider parameters that target specific output profiles — e.g. Cloudinary's cs_adobergb (when wired against an Adobe RGB ICC file) and any custom-ICC overlay.

:profile is one of :srgb / :cmyk / :p3 (libvips built-ins) or a path to an .icc file. :intent is forwarded to Image.to_colorspace/3 and defaults to :relative.

Summary

Types

intent()

@type intent() :: :relative | :perceptual | :saturation | :absolute

t()

@type t() :: %Image.Plug.Pipeline.Ops.IccTransform{
  intent: intent(),
  profile: atom() | binary()
}