martbetz
(Mart Betz)
November 23, 2022, 9:39am
#1
Hi.
Apologies if this question has been asked before (I’m new to the forum and still finding my way around), but are there any plans to provide JPEG XL support in future versions of RawTherapee?
Jade_NL
(Jacques)
November 23, 2022, 11:18am
#2
Keep an eye on this:
JPEG XR (*.jxr) file format support · Issue #6612 · Beep6581/RawTherapee · GitHub
It also mentions a possible workaround.
EDIT
I read too fast and indeed started comparing apples and oranges…
My bad, sorry!
kmilos
November 23, 2022, 11:27am
#3
Er, JPEG XR and JPEG XL are apples and oranges…
There is, however JXL import/export · Issue #6273 · Beep6581/RawTherapee · GitHub
2 Likes
martbetz
(Mart Betz)
November 23, 2022, 12:26pm
#4
Thanks.
Sorry; I should have provided a bit more context to my question: I was mainly enquiring about JPEG XL export support - I’ll take a look over at GitHub via the link you’ve provided.
Thanks again - much appreciated.
1 Like
beling
(Beling)
November 23, 2022, 1:12pm
#5
I also think that export is especially important, as it can save a lot of space needed by the resulted images.
Import is not as important now as cameras do not save to this format jet.
1 Like
beling
(Beling)
November 23, 2022, 1:16pm
#6
Dark Table seems to support jxl import and export, so one can see how they implemented this.
See:
opened 09:35AM - 12 Jan 22 UTC
closed 05:55PM - 24 Oct 22 UTC
feature: enhancement
no-issue-activity
**Is your feature request related to a problem? Please describe.**
No
**… Describe the solution you'd like**
It would be great and extremely useful if [JPEG XL](https://jpeg.org/jpegxl/ 'JPEG XL on jpeg.org') (jxl) could be supported by Darktable. It it the future of image formats, it has a ton of features and it appears to be extremely powerful.
**Alternatives**
Using [GIMP 2.99.8](https://www.gimp.org/news/2021/10/20/gimp-2-99-8-released/#improved-file-formats-support-jpeg-xl-psdpsb-and-more 'Release note')
**Additional context**
- [Image reference implementation](https://github.com/libjxl/libjxl 'libjxl on GitHub')
darktable-org:master
← cyruscook:pr-jxl-format
opened 10:24PM - 20 Sep 21 UTC
Add support for writing JPEG XL formatted images.
More information about the JP… EG XL format can be found here: https://jpeg.org/jpegxl/index.html .
Supporting JPEG XL as an output format will allow darktable users to be able to create JPEG XL images which will offer large benefits for any purposes requiring fast transmission or efficient storage of images as JPEG XL images offer far better compression than JPEG images while retaining more quality, and also support features such as progressive decoding.
JPEG XL is currently supported by Chromium (behind a flag) and Firefox Nightly, however, if darktable users hosting websites offer user agents the option to download and render JPEG XL images this will provide motivation for better support in web browsers.
JPEG XL already has support for many image viewers such as Gimp and Eye of Gnome.
Considerations:
* This PR requires linking darktable builds with [libjxl](https://github.com/libjxl/libjxl/).
* libjxl's encoding API is not yet stable so the code submitted here could require some maintenance.
* libjxl provides [a statement that security is not a priority in their development](https://github.com/libjxl/libjxl/blob/main/SECURITY.md). Therefore the security aspects of including JPEG XL support should be considered. Any vulnerability would require user interaction: the user would have to export an unsafe image with the jxl format selected. There is still a risk here. I can easily imagine a scenario where someone posts malicious image files online, asking other people to edit it for them. I would appreciate input on this.
* libjxl is in active development and there are still frequent bugs. In libjxl 0.5 encoding an image with an encoding effort setting over 4 can cause a crash. Since 0.6 is not yet released I have added a check that will limit the range of the encoding effort setting between 3 and 4. If bugs like this frequently occur this could result in extra maintenance required for this code.
I hope this PR is at the required standard as submitted, however there was a large lack of documentation surrounding a lot of the areas I was contributing to, so please do let me know if there are any more changes I should make.
1 Like
priort
(Todd Prior)
February 15, 2023, 5:09pm
#7
It would seem that it is in many cases faster as well … saving all those CPU cycles and reducing storage/transmission burden could make it a “greener” alternative
1 Like
For me JXL should be supported because it is one of the most important file formats even if it is not accepted anymore by google or mozilla and so on. The fact is, it is JPEG XL - with enormous powerful capabilities.
2 Likes
Tim
(Tim Cuthbertson)
February 28, 2023, 1:27pm
#9
Mozilla still supports it. I have recently used it with Firefox Nightly, which should be their future release.