Bit-Level Inspection of ISO/IEC 18181-1 JPEG XL ExtraChannelInfo Headers
Reading LSB-First SizeHeader, d_alpha Defaults, and Associated Alpha Flags
JPEG XL supports up to 4,096 auxiliary extra channels beyond primary XYB or modular RGB planes—including straight or associated Alpha, Depth maps, SpotColor ink plates, CMYK Black, CFA sensor data, and SelectionMasks. Unlike byte-aligned TIFF tags, JXL packs SizeHeader and ImageMetadata fields into variable-width LSB-first bitstreams immediately following the 0xFF 0x0A codestream signature.
Our JXL Channel Inspector pairs an LSB-first ISO/IEC 18181-1 header bit-reader with @jsquash/jxl/decode pixel verification. It decodes div8 aspect-ratio headers, floating_point_sample flags, num_extra_channels selectors, and ExtraChannelInfo records—reporting whether d_alpha defaults apply (8-bit straight alpha) or explicit alpha_associated premultiplication was signaled, while rendering the isolated extra channel as a crisp grayscale PNG.
- Parses raw 0xFF0A codestreams and reassembled jxlc/jxlp container streams prior to pixel export.
- Reports extra-channel class (Alpha, Depth, SpotColor, SelectionMask, Black) and per-channel bit depth.
- Verifies decoded alpha sample values (such as 64/255 checkerboards) against header metadata.