DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Bugs which are supposed to be fixed in the next test version (not available yet)

Moderators: xnview, Dreamer

Kadet
Posts: 231
Joined: Thu Oct 20, 2022 7:23 pm

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by Kadet »

golemus wrote: Sat Dec 06, 2025 7:03 am I wonder if this Libraw release brings the support. It is pre release though.

https://www.libraw.org/news/libraw-022-prerc1
Now is release:
https://github.com/LibRaw/LibRaw/releases/tag/0.22.0
mgear
Posts: 2
Joined: Fri Jan 02, 2026 6:37 pm

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by mgear »

xnview wrote: Fri May 16, 2025 7:20 am Thanks, but currently always in development, not in release
First of all, thank you for all your incredible work on XnView! It's an indispensable tool for so many of us.

I'd also like to express my interest in support for Lossy DNG 1.7 (JXL) files. I understand this often depends on updates to external libraries like libraw, which can sometimes take a while.

With that in mind, I was looking into it and thought I'd share a potential alternative, just in case it's helpful. The official Adobe DNG SDK provides a high-level dng_render class that handles the entire decoding process. It returns a dng_image object, which gives direct access to the final RGB pixel array. A good working example of this can be found in the dng_validate tool that ships with the SDK.

Of course, this is just a thought, and I completely understand you have your own roadmap and priorities.

Thank you again for considering it and for all your amazing work!
User avatar
xnview
Author of XnView
Posts: 47617
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by xnview »

0.22.0 not yet released
Pierre.
Kadet
Posts: 231
Joined: Thu Oct 20, 2022 7:23 pm

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by Kadet »

mgear
Posts: 2
Joined: Fri Jan 02, 2026 6:37 pm

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by mgear »

Kadet wrote: Tue Jan 13, 2026 4:25 pm Now is released:
👉 https://www.libraw.org/news/libraw-0-22-0-release
DNG 1.7 (including JPEG-XL compression) support via Adobe DNG SDK 1.7.x integration
...
JPEG-XL previews (DNG 1.7) support
hurray! :D
golemus
Posts: 115
Joined: Mon Dec 23, 2024 8:35 am

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by golemus »

xnview wrote: Tue Jan 06, 2026 9:50 am 0.22.0 not yet released
Seems to be now in latest version.

Has anybody been able to view DNG 1.7 lossy JXL images? For me it appears as it is still not working, it still just shows the smallest JPG preview (which is typically maybe 200-300 pixels wide). I tried also modifying settings - read - camera raw, embedded preview, half size, full size,, ignore read errors but they didn't seem to affect.

Below is link to sample DNG files if Pierre wants to check them out.

https://nx76363.your-storageshare.de/s/MZiAbKDsda9bRK3
golemus
Posts: 115
Joined: Mon Dec 23, 2024 8:35 am

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by golemus »

I downloaded libraw 0.22.0 and tried to convert to tiff with dcraw and it said 'unsupported format'.

So there is chance that problem is at libraw:s end.

But I never used before bare libraw so take my word with grain of salt.
golemus
Posts: 115
Joined: Mon Dec 23, 2024 8:35 am

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by golemus »

This is what libraw answered to my post in github:

>The full note text is: DNG 1.7 (including JPEG-XL compression) support via Adobe DNG SDK 1.7.x integration
>Please build LibRaw with Adobe DNG SDK 1.7 and 1.7.1 and do not forget to use set_dng_host() in your code.
>See details in these issues: #716 and #723

Is it built with Adobe SDK in xnview MP...?
golemus
Posts: 115
Joined: Mon Dec 23, 2024 8:35 am

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by golemus »

Problem seems to remain with version 10.1.3 which came out today.
golemus
Posts: 115
Joined: Mon Dec 23, 2024 8:35 am

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by golemus »

Is there any near term plan to add this?

Or would it bring some issues or complexities to have the libraw version where parts include or are made with Adobe SDK...?
golemus
Posts: 115
Joined: Mon Dec 23, 2024 8:35 am

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by golemus »

xnview wrote: Fri May 16, 2025 7:20 am .
Hi Pierre. If/when you build LibRaw with JXL support in this Github topic there is info which might be helpful to make it work properly.

https://github.com/LibRaw/LibRaw/issues/786
User avatar
xnview
Author of XnView
Posts: 47617
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by xnview »

New version will have jxl decoding
Pierre.
golemus
Posts: 115
Joined: Mon Dec 23, 2024 8:35 am

Re: DNG 1.7 (Camera RAW 16) / JPEG XL / lossy support

Post by golemus »

sounds excellent.