Repository navigation
v0.4.1
PureJPEG 0.4.1 is a robustness and compatibility release. It makes decoding more reliable across valid JPEG variants, improves handling of malformed input, and strengthens Spinel support while preserving the existing public API and encoder output.
- Correct progressive decoding at padded component edges, preserve per-scan restart intervals and quantization tables, and support separate or mixed baseline scans and subsampled luminance.
- Handle marker fill bytes, validate restart markers, and reject malformed or unsupported JPEG data with
PureJPEG::DecodeError. - Read ICC profiles after the frame header and ignore incomplete or inconsistent profiles. Treat binary data containing null bytes as data rather than a file path.
- Avoid a Spinel compiler bug in conditional hash assignment. Four package checks, including decoded-pixel parity for 18 external JPEGs, and all eight selected RawSource tests pass on Spinel
2406a5649. - Add decoder conformance and malformed-input regressions, installed-gem checks, and the required IJG notices and creative-options documentation to the gem.
All existing tests remain unchanged. The full suite has 122 tests and 6,302,337 assertions; local runs pass on CRuby 4.0.2, JRuby 9.4.14.0, and TruffleRuby 34.0.1.
The test suite and installed-gem checks also pass in Linux CI on Ruby 3.0, 3.4, 4.0.1, and head, JRuby 10.0.4.0, and TruffleRuby 33.0.1.