pub const LQIP_FORMAT_V1: u16 = 1;Expand description
The LQIP chromahash format version written into the sidecar.
This is Capsule’s sidecar format version, not chromahash’s own wire-format generation
(chromahash::FORMAT_VERSION, which is self-describing inside the payload’s first byte).
It stays 1: the sidecar schema has always declared this field as Lqip.chromahash and
version 1 as the chromahash format version. The ThumbHash payloads the interim
implementation wrote were an undeclared stand-in for a dependency that had not shipped, not
the declared encoding — so writing real chromahash under version 1 makes the code match a
contract that never changed.
That is legitimate only while the migration is total, i.e. no persisted sidecar carries a ThumbHash payload under version 1. ThumbHash payloads are shorter than 32 bytes but overlap the lower chromahash tiers in length, so byte length alone cannot discriminate a stale one. Should such a sidecar ever exist, the fix is a new format version — never a redefinition of this one.