OgEx.Resources (og_ex v0.2.0)

Copy Markdown View Source

Discovers and loads image resources referenced by generated-card HTML.

The current implementation scans unique <img src> values. The renderer receives verified byte buffers keyed by the exact source strings used in the HTML. CSS url(...), srcset, and <picture> are not scanned.

Summary

Functions

Loads every unique <img src> in a rendered card document.

Functions

load(html, conn)

Loads every unique <img src> in a rendered card document.

Returns the renderer image map and a sorted fingerprint list suitable for a generated-image cache key. The first normalization or loading failure stops the operation and returns {:error, {:image_resource, source, reason}}.