Lossless transcoding of lossless, arithmetic, hdr legacy JPEG #2685
Labels
colorspace
relates to hte use of color spaces, ICC profiles, etc
documentation
Improvements or additions to documentation
unrelated to 1.0
Things that need not be done before the 1.0 version milestone
Describe the bug
The official JPEG-XL website states "Lossless JPEG transcoding: about 20% smaller" - however, this some perfectly in-spec jpeg encoding methods are not supported and result only in a cryptic error message "JxlEncoderAddJPEGFrame() failed".
To Reproduce
Encode 1. lossless jpeg (cjpeg -lossless 7), 2. arithmetic jpeg (cjpeg -arithmetic), 3. hdr jpeg (cjpeg -precision 12) and convert with cjxl --lossless_jpeg=1. I've attached respective samples.
Expected behavior
Expected behavior would either be a verbose error message (lossless | arithmetic | hdr not supported) or ideally a lossless conversion to jxl. The arithmetic encoding is easy to remove tough (jpegtran -optimize).
Environment
Additional context
... the sample jpeg won't show inline at all or not in all browers, use the direct links.
https://github.com/libjxl/libjxl/assets/10775306/7905df08-0fc2-400e-a64b-66f3221bce0b
https://github.com/libjxl/libjxl/assets/10775306/7e4980f2-58c8-4f71-8816-c78a98207bc4
https://github.com/libjxl/libjxl/assets/10775306/21223d30-2c6d-47c6-9185-495a984ca79b
The text was updated successfully, but these errors were encountered: