JPEG-XL images with embedded AdobeRGB color profile displayed incorrectly
I've attached an image shot with Fujifilm camera. This is an AdobeRGB SOOC JPEG with AdobeRGB(1998) ICC profile embedded using exiftool. This image has been converted to Jpeg XL using cjxl twice - first one is default lossless recompression, and the second one is lossy using VarDCT.
Result:
- Original JPEG image is displayed correctly, icc profile applied and EXIF data displayed.
- "Lossless" JPEGXL image is displayed correctly, icc profile applied but EXIF data is unavailable.
- Lossy JPEGXL image is displayed incorrectly (way too dark, should be brighter even without ICC), neither icc profile nor exif is available.
Expected result:
- All images are displayed correcty, like when using eog/xviewer app.
Exif metadata for both JXL images can be read using exiv2 0.28 command line tool, but is not visible in gThumb (nor eog) - this may be unrelated issue, though - as far as I know ICC profiles in JPEGXL are part of codestream, not metadata, so lack of exif should not be a problem, although it would be nice to have it.
The same issue affects Pix, which is based on gThumb.
Tested on latest stable Manjaro linux, gThumb 3.12.2-7, Pix 3.0.2-1, exiv2 0.28.0-3, libgexiv2 0.14.1-1, eog 44.3-1, libjxl 0.8.2-1