Behaviour for HTML-to-image rendering backends.
OgEx passes a complete HTML document, viewport dimensions, output format, loaded font bytes, and a map of verified image resources. A renderer must return a complete encoded response body rather than raw pixels.
Summary
Callbacks
Converts a complete HTML document into an encoded image.
Types
@type option() :: {:width, pos_integer()} | {:height, pos_integer()} | {:format, :png | :jpeg | :webp | :svg} | {:fonts, [binary()]} | {:images, %{optional(String.t()) => binary()}}