Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 28 Jul 17:31

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/static directory.
  • OgEx.private_asset/1 loads 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:image at 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"}

View the changes from 0.1.0