PeachImage

PeachImage.Formats.Jxl Namespace

Classes  
JxlDecoderOptions JPEG XL-specific decode options. Currently adds nothing beyond TargetPixelFormat.
JxlDecodingException Thrown when a JPEG XL file is malformed or truncated, as opposed to well-formed but out of scope.
JxlEncoderOptions JPEG XL-specific encode options. Supported sources are 8- and 16-bit gray, RGB and RGBA (Gray8, Rgb24, Rgba32 and their 16-bit counterparts) and the 32-bit float formats (GrayF32, RgbF32, RgbaF32, sRGB-encoded, values above 1 allowed); a fully opaque RGBA image is stored without an alpha channel. Float samples are stored bit for bit when Lossless is set (lossless compression of float data is poor, since the samples are coded as integers). Alpha is straight (not premultiplied). The color space is signalled as sRGB (or gray with the sRGB transfer function), and any ICC, Exif or XMP profiles on the image are stored alongside when IncludeMetadata is set.
JxlEncodingException Thrown when an image cannot be encoded as JPEG XL, for example because of an unsupported pixel format.
JxlFormatException Base type for exceptions specific to the JPEG XL codec.
JxlJpegRecompression Losslessly recompresses a JPEG file into JPEG XL, the way cjxl does for JPEG input: the quantized DCT coefficients are re-coded with JPEG XL’s entropy coder (typically a fifth smaller than the JPEG) and the information needed to write the original bytes back is kept in the file, so JxlJpegReconstruction gives the JPEG back unchanged. The result also decodes like any JPEG XL image, to the pixels the JPEG decodes to.
JxlJpegReconstruction Recovers the original JPEG file from a JPEG XL image that was made by losslessly recompressing one (as cjxl does for JPEG input). The recovered bytes are identical to the JPEG that was recompressed, so they can be embedded or served as-is, without decoding and re-encoding the pixels.
JxlUnsupportedFeatureException Thrown when a JPEG XL file is well-formed but uses a feature this decoder does not implement (yet), as opposed to JxlDecodingException, which means the file itself is malformed. A sibling rather than a subclass so corpus tests can tell “skip it” from “real decoding bug”.