Astral.Image.Transform (Astral v0.1.2)

Copy Markdown View Source

A normalized image transform requested by rendered Astral content.

Summary

Types

fit()

@type fit() :: :contain | :cover | :fill

t()

@type t() :: %Astral.Image.Transform{
  fit: fit(),
  format: atom(),
  height: pos_integer(),
  metadata: Astral.Image.Metadata.t(),
  output_path: String.t() | nil,
  quality: pos_integer(),
  source: String.t(),
  url: String.t(),
  width: pos_integer()
}