Packages

Probe remote image dimensions (width × height) from just a URL — fetches only the first bytes via HTTP Range and parses JPEG/PNG/WebP/GIF headers. Batch probing with parallelism, median backfill for failed probes, sampling for huge lists, and built-in caching.

Current section

Files

Jump to
dims CHANGELOG.md
Raw

CHANGELOG.md

# Changelog
## 0.1.0 (2026-07-14)
Initial release:
* `Dims.probe/2` — width × height for a remote image URL from a
~128 KB HTTP Range fetch (JPEG / PNG / WebP / GIF headers).
* `Dims.probe_all/2` — ordered parallel batch probing with median
backfill for failed probes.
* `Dims.probe_sampled/2` / `Dims.probe_auto/2` — sampled probing for
huge near-uniform lists (~25× less traffic), auto full/sampled
switch by list length.
* `Dims.Parser.parse/1` — the pure header parser, usable on bytes you
already have.
* ETS cache with per-call TTL/bypass; per-URL or static extra headers
for referer-checking CDNs.