Files
craft-libs/crates/file-formats
Alex 1b4dcb4afa image-codecs: make JPEG 2000 decode an opt-in jp2 feature
hayro-jpeg2000 was a plain dependency, so every crate that reached
craft-image-codecs carried a JPEG 2000 decoder: craft-svg's tree feature,
and through it any SVG or raster reader, including apps that export PDF and
keep hayro out of their production graph with a guard.

The decoder now sits behind jp2, off by default, in the shape sgi and
sunraster already use: the module and the dependency are gated, caps().read
reports the build, and a JP2 file without the feature is still detected and
refused with the feature named. craft-file-formats gains the matching jp2
flag. Detection and the jp2_probe size reader need no decoder and stay on.
2026-11-20 10:07:04 +01:00
..