Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 24 Jul 10:41

OgEx 0.1.0

This release introduces generated social cards for Phoenix controllers.

  • use OgEx.Card defines card dimensions and output format.
  • metadata/1 defines Open Graph and Twitter/X metadata.
  • render/1 defines the image with HEEx and CSS.
  • render(conn, template, og: CardModule) adds metadata to the HTML response.
  • A signed query URL on the same controller route returns the generated image.
  • Takumi renders PNG, JPEG, WebP, and SVG output.
  • Generated images use an in-memory ETS cache and immutable response headers.
  • Precompiled native libraries are available for supported Linux, macOS, and
    Windows targets.

Install:

{:og_ex, "~> 0.1.0"}

View the changes