mirror of
https://github.com/storytold/craft-libs.git
synced 2026-12-01 02:36:54 +01:00
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.