API Reference dims v#0.1.0

Copy Markdown View Source

Modules

Probe remote image dimensions (width × height) from just a URL.

Tiny ETS-backed TTL cache for probe results, started by the :dims application. Dimensions never change for a URL, so entries default to a 30-day TTL (set per call via :cache_ttl, or bypass with cache: false).

Parses image dimensions out of raw leading bytes. Pure functions — no I/O — so they're directly testable and usable on bytes you already have (an upload's first chunk, a cached header, …).