Repository navigation
Releases
Releases · IndianOpinion/srcset-truth
srcset-truth 0.1.0
Added
- Sizes correction: detects core's default
sizes, resolves a template key
and a slot, and replaces the value from a width map supplied by filters or
thegridpreset. Validated grammar, capping at the image width, the
autorule, one classifier for every path. - Slot API:
with_slot(),push_slot(),pop_slot(),current_slot(),
sibling_path(),sibling_url(),compile_sizes(). - WebP siblings at upload for the main file and
medium,medium_large,
large, with Imagick or GD: real-type detection, alpha, colour profiles,
animated GIFs, atomic writes, size and frame limits, keep-only-if-smaller. - Background backfill: cursor from the newest ID, 45 s budget, single-run
lock, full-pass tracking. - Serving:
<picture>wrapping with a WebP<source>(default), so browsers
without WebP fall back to the untouched<img>; type-aware in-place
rewriting ofsrcsetandsrcis an opt-in (srcset_truth_picture_wrap
returningfalse) because it breaks images in those browsers. Images
printed withwp_get_attachment_image()are wrapped through its output
filter. - Buffer mode for theme-hard-coded tags, and an opt-in LCP fix with preload.
- WP-CLI:
audit,generate,status,map,remove-siblings. - Site Health checks, an administrator slot probe, a Settings, Media section.
SRCSET_TRUTH_DISABLEconstant.
Install: composer require indianopinion/srcset-truth