v0.2.0
OgEx 0.2.0
This release introduces local and remote image sources.
- Generated HEEx cards can contain
<img>elements. - Root-relative paths load images from the Phoenix
priv/staticdirectory. OgEx.private_asset/1loads a private local file without exposing a public
URL.- HTTPS images can be downloaded from an explicit host allowlist.
- Remote loading includes byte, dimension, pixel, redirect, and timeout limits.
- Direct-image declarations can point
og:imageat an existing local or
external file instead of generating a new image. - Local image content is inspected to determine its actual format and
dimensions.
Install:
{:og_ex, "~> 0.2.0"}