Image data helpers for model, eval, and renderer boundaries.
Summary
Types
@type t() :: %Vibe.Image{ data: String.t(), filename: String.t() | nil, height: pos_integer() | nil, mime_type: String.t(), original_height: pos_integer() | nil, original_width: pos_integer() | nil, path: String.t() | nil, size_bytes: non_neg_integer() | nil, was_resized?: boolean(), width: pos_integer() | nil }
Functions
@spec dimensions(binary(), String.t()) :: {pos_integer() | nil, pos_integer() | nil}
@spec from_binary(String.t(), binary(), String.t(), File.Stat.t()) :: t()
@spec supported_mime_types() :: [String.t()]