Export to lossless JXL doesn't end

Darktable 4.6, openSUSE Tumbleweed, JXL libraries installed

I can export to lossless JXL with GIMP, Krita, Digikam … however when I try to export to JXL (quality 100, so lossless) with with Darktable , it remains exporting forever, but doing nothing about (Darktable is loaded and working, but not exporting). If I try to close while exporting to lossless JXL, Darktable window is closed, but however I can see it remains loaded in “system activity” (Plasma, KDE).

What’s happening?

Thank you

run darktable with -d common to get debug information …
without that info no one can tell you, what’s happening

I tried it on my old windows box at work just now… I got tired of waiting but I minimized DT and just left it and it finished… I exported a 62 MB DNG from a recent playraw and it was slightly larger as a JXL… almost 63mb when exported at 100%. It did finish I just don’t know how long it took… I could retest but my work PC is pretty old…

dartable -d output print darktable parameters info, like -h.

However, “-v” shows:

darktable 4.6.0
Copyright (C) 2012-2023 Johannes Hanika and other contributors.

Compile options:
  Bit depth              -> 64 bit
  Debug                  -> DISABLED
  SSE2 optimizations     -> ENABLED
  OpenMP                 -> ENABLED
  OpenCL                 -> ENABLED
  Lua                    -> ENABLED  - API version 9.2.0
  Colord                 -> ENABLED
  gPhoto2                -> ENABLED
  GMIC                   -> ENABLED  - Compressed LUTs are supported
  GraphicsMagick         -> DISABLED
  ImageMagick            -> DISABLED
  libavif                -> ENABLED
  libheif                -> ENABLED
  libjxl                 -> ENABLED
  OpenJPEG               -> ENABLED
  OpenEXR                -> ENABLED
  WebP                   -> ENABLED

and it’s strange GraphicsMaigk and ImageMagick are disabled …

Exporting to DNG is a step that doesn’t do much for me, since viewers or image managers like Gwenview or Digikam won’t show the final result after applying the filters. In my case, I prefer to keep the original RAW files and export them after processing them with Dartable to JXL lossless, once I have seen that it provides more benefits than TIFF natively, the first one, lossless compression, extended metadata support and transparencies, properties that TIFF does not have natively, but with extensions that are often incompatible if the viewer used does not implement them.

My computer is quite fast and I have waited much longer than when exporting to JXL from any other application, but Darktable does not process the queue of selected elements, it keeps showing the first element in the process of exporting indefinitely.

You need to provide a txt file of the -d common output from you export. This will be a long file with multiple rows that tell us what the system is doing.

FYI, I exported an image using 100 JXL on my system (Fedora 39 KDE) + current master and had no issues.

Is the issue only when you export to JXL? Or do you have the same issue when you export the same image/processing to jpg?

Please note I was not suggesting DNG…it was just one of the larger files that I had handy so I used it as a test image. And it was slow but completed… That was all I meant… sorry if I implied DNG use

It seems you missed the “common”. It should be

darktable -d common

Or

darktable -d common | tee output.txt

To directly save everything to a file

1 Like

I executed exactly what MSTraeten tell me, without missing nothing, but your parameter worked. I launched it, did same task (3 files selected to export to lossless JXL) and again, 15 minutes without changes. And after cancel export queue and exit Dartable, he remains loaded in memory till I kill it.

darktable -d common | tee output.txt
darktable 4.6.0
Copyright (C) 2012-2023 Johannes Hanika and other contributors.

Compile options:
  Bit depth              -> 64 bit
  Debug                  -> DISABLED
  SSE2 optimizations     -> ENABLED
  OpenMP                 -> ENABLED
  OpenCL                 -> ENABLED
  Lua                    -> ENABLED  - API version 9.2.0
  Colord                 -> ENABLED
  gPhoto2                -> ENABLED
  GMIC                   -> ENABLED  - Compressed LUTs are supported
  GraphicsMagick         -> DISABLED
  ImageMagick            -> DISABLED
  libavif                -> ENABLED
  libheif                -> ENABLED
  libjxl                 -> ENABLED
  OpenJPEG               -> ENABLED
  OpenEXR                -> ENABLED
  WebP                   -> ENABLED

See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.

     0.0001 application_directory: /usr/bin
     0.0001 darktable.datadir: /usr/share/darktable
     0.0001 darktable.plugindir: /usr/lib64/darktable
     0.0002 darktable.localedir: /usr/share/locale
     0.0002 darktable.configdir: /home/myuser/.config/darktable
     0.0002 darktable.cachedir: /home/myuser/.cache/darktable
     0.0002 darktable.sharedir: /usr/share
     0.0002 darktable.tmpdir: /tmp
     0.0002 new_xdg_data_dirs: (null)
     1.1961 [dt_worker_threads] using 6 worker threads
     1.1982 [dt_get_sysresource_level] switched to 1 as `default'
     1.1982   total mem:       32009MB
     1.1982   mipmap cache:    4001MB
     1.1982   available mem:   16004MB
     1.1982   singlebuff:      250MB
     1.2297 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
     1.2298 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
     1.2304 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
     1.3413 [opencl_init] found 2 platforms
     1.3413 [check platform] platform 'Clover' with key 'clplatform_clover' is NOT active
     1.3413 [check platform] platform 'rusticl' with key 'clplatform_rusticl' is NOT active
[opencl_init] found 0 device
     1.3413 [opencl_init] FINALLY: opencl is NOT AVAILABLE and NOT ENABLED.
     1.3977 [dt_worker_threads] using 6 worker threads
    44.0342 [avif_open] failed to parse `/home/myuser/Fotos/Mías/Lugares/Europa/España/Lagunas Ruidera y Tablas Daimiel/_1020641.RW2': BMFF parsing failed
    44.0343 [rawspeed_open] extensions list to ignore: `cr3'
    44.0847 [dt_dev_read_history_ext] temporary history deleted
    44.0847 [dt_iop_reload_defaults] defaults reloaded for filmicrgb
    44.0847 [dt_iop_reload_defaults] defaults reloaded for colormapping
    44.0847 [dt_iop_reload_defaults] defaults reloaded for channelmixerrgb
    44.0851 [dt_iop_reload_defaults] defaults reloaded for colorin
    44.0852 [dt_iop_reload_defaults] defaults reloaded for basecurve
    44.0852 [dt_iop_reload_defaults] defaults reloaded for crop
    44.0852 [dt_iop_reload_defaults] defaults reloaded for clipping
    44.0852 [dt_iop_reload_defaults] defaults reloaded for flip
    44.0852 [dt_iop_reload_defaults] defaults reloaded for scalepixels
    44.0852 [dt_iop_reload_defaults] defaults reloaded for rotatepixels
    44.0852 [dt_iop_reload_defaults] defaults reloaded for ashift
    44.0852 [dt_iop_reload_defaults] defaults reloaded for cacorrectrgb
    44.0867 [dt_iop_reload_defaults] defaults reloaded for lens
    44.0867 [dt_iop_reload_defaults] defaults reloaded for retouch
    44.0867 [dt_iop_reload_defaults] defaults reloaded for exposure
    44.0868 [dt_iop_reload_defaults] defaults reloaded for denoiseprofile
    44.0868 [dt_iop_reload_defaults] defaults reloaded for demosaic
    44.0868 [dt_iop_reload_defaults] defaults reloaded for rawdenoise
    44.0868 [dt_iop_reload_defaults] defaults reloaded for hotpixels
    44.0868 [dt_iop_reload_defaults] defaults reloaded for cacorrect
    44.0868 [dt_iop_reload_defaults] defaults reloaded for highlights
    44.0868 [dt_iop_reload_defaults] temperature: D65 2.489 1.000 1.711, AS-SHOT 2.230 1.000 1.953
    44.0868 [dt_iop_reload_defaults] defaults reloaded for temperature
    44.0868 [dt_iop_reload_defaults] defaults reloaded for invert
    44.0868 [dt_iop_reload_defaults] defaults reloaded for rawprepare
    44.0898 [dt_dev_read_history_ext] temporary history initialised with default params and presets
    44.0898 [dt_dev_read_history_ext] temporary history merged with image history
    44.0898 [history] successfully loaded module rawprepare from history
                        blendop v. 13:  version ok      params ok
                        params v. 2:    version ok      params ok
    44.0898 [history] successfully loaded module gamma from history
                        blendop v. 13:  version ok      params ok
                        params v. 1:    version ok      params ok
    44.0898 [history] successfully loaded module temperature from history
                        blendop v. 13:  version ok      params ok
                        params v. 3:    version ok      params ok
    44.0898 [history] successfully loaded module flip from history
                        blendop v. 13:  version ok      params ok
                        params v. 2:    version ok      params ok
    44.0898 [history] successfully loaded module demosaic from history
                        blendop v. 13:  version ok      params ok
                        params v. 4:    version ok      params ok
    44.0898 [history] successfully loaded module colorin from history
                        blendop v. 13:  version ok      params ok
                        params v. 7:    version ok      params ok
    44.0898 [history] successfully loaded module colorout from history
                        blendop v. 13:  version ok      params ok
                        params v. 5:    version ok      params ok
    44.0898 [history] successfully loaded module highlights from history
                        blendop v. 13:  version ok      params ok
                        params v. 4:    version ok      params ok
    44.0898 [history] successfully loaded module sharpen from history
                        blendop v. 13:  version ok      params ok
                        params v. 1:    version ok      params ok
    44.0899 [history] successfully loaded module basecurve from history
                        blendop v. 13:  version ok      params ok
                        params v. 6:    version ok      params ok
    44.0899 [history] successfully loaded module colorzones from history
                        blendop v. 13:  version ok      params ok
                        params v. 5:    version ok      params ok
    44.0899 [history] successfully loaded module colorcorrection from history
                        blendop v. 13:  version ok      params ok
                        params v. 1:    version ok      params ok
    44.0899 [history] successfully loaded module colorzones from history
                        blendop v. 13:  version ok      params ok
                        params v. 5:    version ok      params ok
    44.0899 [history] successfully loaded module colorcorrection from history
                        blendop v. 13:  version ok      params ok
                        params v. 1:    version ok      params ok
    44.0899 [history] successfully loaded module toneequal from history
                        blendop v. 13:  version ok      params ok
                        params v. 2:    version ok      params ok
    44.0899 [history] successfully loaded module atrous from history
                        blendop v. 13:  version ok      params ok
                        params v. 2:    version ok      params ok
    44.0899 [history] successfully loaded module atrous from history
                        blendop v. 13:  version ok      params ok
                        params v. 2:    version ok      params ok
    44.0899 [history] successfully loaded module lens from history
                        blendop v. 13:  version ok      params ok
                        params v. 10:   version ok      params ok
    44.0959 synch all modules with defaults [export]                                
    44.0959 [iop_validate_params] `temperature' failed for type "float", field: various
    44.0959 [iop_validate_params] `temperature' failed for type "dt_iop_temperature_params_t"
    44.1366 [iop_validate_params] `borders' failed for type "float", field: aspect
    44.1366 [iop_validate_params] `borders' failed for type "dt_iop_borders_params_t"
    44.1366 synch all modules with history [export]                                
    44.1366 committed params           [export]         rawprepare             piece hash=d3b5ab98d2582995, 
    44.1366 committed params           [export]         gamma                  piece hash=1ae2f37bb34a05, 
    44.1366 [iop_validate_params] `temperature' failed for type "float", field: various
    44.1366 [iop_validate_params] `temperature' failed for type "dt_iop_temperature_params_t"
    44.1366 committed params           [export]         temperature            piece hash=155378a5caad3f37, 
    44.1366 committed params           [export]         flip                   piece hash=0, 
    44.1366 committed params           [export]         demosaic               piece hash=b0702bc252c2d1d2, 
    44.1367 committed params           [export]         colorin                piece hash=7563a39ceae1e96a, 
    44.1372 committed params           [export]         colorout               piece hash=8e5a0f73242a7524, 
    44.1372 committed params           [export]         highlights             piece hash=7f5e0368566e7fd, 
    44.1372 committed params           [export]         sharpen                piece hash=473597dc29ab04f0, 
    44.1379 committed params           [export]         basecurve              piece hash=ff815aa67895c728, 
    44.1415 committed params           [export]         colorzones             piece hash=6cc027d29af939b1, 
    44.1416 committed params           [export]         colorcorrection        piece hash=5b75be7e4881e48f, 
    44.1454 committed params           [export]         colorzones             piece hash=6cc027d29af939b1, 
    44.1454 committed params           [export]         colorcorrection        piece hash=5b75be7e4881e48f, 
    44.1493 committed params           [export]         toneequal              piece hash=0, 
    44.1493 committed params           [export]         atrous                 piece hash=bcd7a96a0cee9c44, 
    44.1493 committed params           [export]         atrous                 piece hash=bcd7a96a0cee9c44, 
    44.1508 committed params           [export]         lens                   piece hash=0, 
    44.1508 dt_dev_pixelpipe_synch_all [export]                                defaults 0.0407s, history 0.0142s
    44.1508 [dt_imageio_export_with_flags]     44.1508 
    44.1508  rawprepare    44.1508  temperature    44.1508  highlights    44.1508  demosaic    44.1508  basecurve    44.1508  colorin    44.1508  atrous    44.1508  colorzones    44.1508  colorcorrection    44.1508  sharpen    44.1508  colorout    44.1508  finalscale    44.1508  gamma    44.1508  (13)
    44.1508 [dt_imageio_export] [export] imgid 4618, 5200x3904 --> 5200x3904 (scale 1.000000). upscale=no, hq=yes
    44.1508 pixelpipe starting on CPU  [export]                                (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 
    44.1513 modify roi IN              [export]         rawprepare             (   0/   0) 5264x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 
    44.1513 pixelpipe data: full       [export]                                (   0/   0) 5264x3904 scale=1.0000 --> (   0/   0) 5264x3904 scale=1.0000 
    44.1513 pixelpipe process CPU      [export]         rawprepare             (   0/   0) 5264x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RAW
    44.1607 pixelpipe process CPU      [export]         temperature            (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RAW
    44.1727 pixelpipe process CPU      [export]         highlights             (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RAW
    44.1854 opposed chroma CPU         [export]         highlights             (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 red: 0.0000, green: 0.0000, blue: 0.0000 for hash=3cfdbfa631102dd6
    44.1962 pixelpipe process CPU      [export]         demosaic               (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RAW -> IOP_CS_RGB
    44.2794 pixelpipe process CPU      [export]         basecurve              (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RGB
    44.3259 pixelpipe process CPU      [export]         colorin                (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RGB -> IOP_CS_LAB
    44.3260 matrix conversion on CPU   [export]         colorin                (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 `matriz de color estándar'
    44.3586 pixelpipe process CPU      [export]         atrous                 (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_LAB
    45.4488 pixelpipe process CPU      [export]         colorzones             (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_LAB
    45.5338 pixelpipe process CPU      [export]         colorcorrection        (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_LAB
    45.5728 pixelpipe process CPU      [export]         sharpen                (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_LAB
    45.6214 pixelpipe process CPU      [export]         colorout               (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_LAB -> IOP_CS_RGB
    45.9103 pixelpipe process CPU      [export]         finalscale             (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RGB
    45.9103 clip_and_zoom_roi          [export]         finalscale             (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 
    45.9506 cache report               [export]                                2 lines (important=0, used=0, invalid=0). Using 627MB, limit=0MB. Hits/run=0.00. Hits/test=0.000
    45.9506 pixelpipe finished         [export]                                (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000

If I do the same to TIFF, no issues.

Thank you very much for the clarification. I wrongly inferred that I was suggesting saving in DNG and I appreciate you taking the test. Maybe it’s my system, I don’t know, and with mine being Linux, it may be more complicated to get the problem right. In any case, I leave as a suggestion to anyone what I am doing, and that is to convert my TIFF to JXL lossless, that even if it is little, you save space and above all, the issue of compatibility. The native compression of JXL is excellent and compatible with any JXL viewer.

You don’t seem to have opencl working in this log when you export a raw file…in the log when you export a tif vs a raw to jxl is it the same no opencl??

No, you didn’t. He wrote:

run darktable with -d common

And you ran darktable -d, without common:

My mistake. When I read it, even though I saw it marked as “code”, I interpreted it directly from “common”, in the sense that it was something “common” that I should even know. I apologise. It was a typical “lost in translation”.

I exported to compressed TIFF with “deflation with prediction” in about 7 seconds, and this is the result:

darktable 4.6.0
Copyright (C) 2012-2023 Johannes Hanika and other contributors.

Compile options:
  Bit depth              -> 64 bit
  Debug                  -> DISABLED
  SSE2 optimizations     -> ENABLED
  OpenMP                 -> ENABLED
  OpenCL                 -> ENABLED
  Lua                    -> ENABLED  - API version 9.2.0
  Colord                 -> ENABLED
  gPhoto2                -> ENABLED
  GMIC                   -> ENABLED  - Compressed LUTs are supported
  GraphicsMagick         -> DISABLED
  ImageMagick            -> DISABLED
  libavif                -> ENABLED
  libheif                -> ENABLED
  libjxl                 -> ENABLED
  OpenJPEG               -> ENABLED
  OpenEXR                -> ENABLED
  WebP                   -> ENABLED

See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.

     0.0001 application_directory: /usr/bin
     0.0001 darktable.datadir: /usr/share/darktable
     0.0001 darktable.plugindir: /usr/lib64/darktable
     0.0002 darktable.localedir: /usr/share/locale
     0.0002 darktable.configdir: /home/myuser/.config/darktable
     0.0002 darktable.cachedir: /home/myuser/.cache/darktable
     0.0002 darktable.sharedir: /usr/share
     0.0002 darktable.tmpdir: /tmp
     0.0002 new_xdg_data_dirs: (null)
     0.4226 [dt_worker_threads] using 6 worker threads
     0.4256 [dt_get_sysresource_level] switched to 1 as `default'
     0.4256   total mem:       32009MB
     0.4256   mipmap cache:    4001MB
     0.4256   available mem:   16004MB
     0.4256   singlebuff:      250MB
     0.4365 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
     0.4365 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
     0.4371 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
     0.5125 [opencl_init] found 2 platforms
     0.5125 [check platform] platform 'Clover' with key 'clplatform_clover' is NOT active
     0.5125 [check platform] platform 'rusticl' with key 'clplatform_rusticl' is NOT active
[opencl_init] found 0 device
     0.5125 [opencl_init] FINALLY: opencl is NOT AVAILABLE and NOT ENABLED.
     0.5896 [dt_worker_threads] using 6 worker threads
     3.2995 [_gamepad_open_devices] opened game controller 'Atari Xbox 360 Game Controller'
    21.0063 [avif_open] failed to parse `/home/myuser/Fotos/Mías/Lugares/Europa/España/Lagunas Ruidera y Tablas Daimiel/_1020827.RW2': BMFF parsing failed
    21.0069 [rawspeed_open] extensions list to ignore: `cr3'
    21.0548 [dt_dev_read_history_ext] temporary history deleted
    21.0549 [dt_iop_reload_defaults] defaults reloaded for filmicrgb
    21.0549 [dt_iop_reload_defaults] defaults reloaded for colormapping
    21.0549 [dt_iop_reload_defaults] defaults reloaded for channelmixerrgb
    21.0552 [dt_iop_reload_defaults] defaults reloaded for colorin
    21.0553 [dt_iop_reload_defaults] defaults reloaded for basecurve
    21.0553 [dt_iop_reload_defaults] defaults reloaded for crop
    21.0553 [dt_iop_reload_defaults] defaults reloaded for clipping
    21.0553 [dt_iop_reload_defaults] defaults reloaded for flip
    21.0553 [dt_iop_reload_defaults] defaults reloaded for scalepixels
    21.0553 [dt_iop_reload_defaults] defaults reloaded for rotatepixels
    21.0553 [dt_iop_reload_defaults] defaults reloaded for ashift
    21.0553 [dt_iop_reload_defaults] defaults reloaded for cacorrectrgb
    21.0569 [dt_iop_reload_defaults] defaults reloaded for lens
    21.0569 [dt_iop_reload_defaults] defaults reloaded for retouch
    21.0569 [dt_iop_reload_defaults] defaults reloaded for exposure
    21.0570 [dt_iop_reload_defaults] defaults reloaded for denoiseprofile
    21.0570 [dt_iop_reload_defaults] defaults reloaded for demosaic
    21.0570 [dt_iop_reload_defaults] defaults reloaded for rawdenoise
    21.0570 [dt_iop_reload_defaults] defaults reloaded for hotpixels
    21.0570 [dt_iop_reload_defaults] defaults reloaded for cacorrect
    21.0570 [dt_iop_reload_defaults] defaults reloaded for highlights
    21.0570 [dt_iop_reload_defaults] temperature: D65 2.489 1.000 1.711, AS-SHOT 2.535 1.000 1.492
    21.0570 [dt_iop_reload_defaults] defaults reloaded for temperature
    21.0570 [dt_iop_reload_defaults] defaults reloaded for invert
    21.0570 [dt_iop_reload_defaults] defaults reloaded for rawprepare
    21.0601 [dt_dev_read_history_ext] temporary history initialised with default params and presets
    21.0601 [dt_dev_read_history_ext] temporary history merged with image history
    21.0601 [history] successfully loaded module rawprepare from history
			blendop v. 13:	version ok	params ok
			params v. 2:	version ok	params ok
    21.0601 [history] successfully loaded module demosaic from history
			blendop v. 13:	version ok	params ok
			params v. 4:	version ok	params ok
    21.0601 [history] successfully loaded module colorin from history
			blendop v. 13:	version ok	params ok
			params v. 7:	version ok	params ok
    21.0601 [history] successfully loaded module colorout from history
			blendop v. 13:	version ok	params ok
			params v. 5:	version ok	params ok
    21.0601 [history] successfully loaded module gamma from history
			blendop v. 13:	version ok	params ok
			params v. 1:	version ok	params ok
    21.0601 [history] successfully loaded module temperature from history
			blendop v. 13:	version ok	params ok
			params v. 3:	version ok	params ok
    21.0601 [history] successfully loaded module highlights from history
			blendop v. 13:	version ok	params ok
			params v. 4:	version ok	params ok
    21.0602 [history] successfully loaded module flip from history
			blendop v. 13:	version ok	params ok
			params v. 2:	version ok	params ok
    21.0602 [history] successfully loaded module sharpen from history
			blendop v. 13:	version ok	params ok
			params v. 1:	version ok	params ok
    21.0602 [history] successfully loaded module basecurve from history
			blendop v. 13:	version ok	params ok
			params v. 6:	version ok	params ok
    21.0650 synch all modules with defaults [export]                                
    21.0650 [iop_validate_params] `temperature' failed for type "float", field: various
    21.0650 [iop_validate_params] `temperature' failed for type "dt_iop_temperature_params_t"
    21.1084 [iop_validate_params] `borders' failed for type "float", field: aspect
    21.1084 [iop_validate_params] `borders' failed for type "dt_iop_borders_params_t"
    21.1084 synch all modules with history [export]                                
    21.1084 committed params           [export]         rawprepare             piece hash=9ba668fdc010df95, 
    21.1085 committed params           [export]         demosaic               piece hash=b0702bc252c2d1d2, 
    21.1085 committed params           [export]         colorin                piece hash=7563a39ceae1e96a, 
    21.1090 committed params           [export]         colorout               piece hash=8e5a0f73242a7524, 
    21.1090 committed params           [export]         gamma                  piece hash=1ae2f37bb34a05, 
    21.1090 [iop_validate_params] `temperature' failed for type "float", field: various
    21.1090 [iop_validate_params] `temperature' failed for type "dt_iop_temperature_params_t"
    21.1090 committed params           [export]         temperature            piece hash=155378a5caad3f37, 
    21.1090 committed params           [export]         highlights             piece hash=7f5e0368566e7fd, 
    21.1090 committed params           [export]         flip                   piece hash=0, 
    21.1090 committed params           [export]         sharpen                piece hash=473597dc29ab04f0, 
    21.1097 committed params           [export]         basecurve              piece hash=ff815aa67895c728, 
    21.1097 dt_dev_pixelpipe_synch_all [export]                                defaults 0.0434s, history 0.0013s
    21.1097 [dt_imageio_export_with_flags]     21.1097 
    21.1097  rawprepare    21.1097  temperature    21.1097  highlights    21.1097  demosaic    21.1097  basecurve    21.1097  colorin    21.1097  sharpen    21.1097  colorout    21.1097  finalscale    21.1097  gamma    21.1097  (10)
    21.1097 [dt_imageio_export] [export] imgid 4637, 5200x3904 --> 5200x3904 (scale 1.000000). upscale=no, hq=yes
    21.1097 pixelpipe starting on CPU  [export]                                (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 
    21.1097 modify roi IN              [export]         rawprepare             (   0/   0) 5264x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 
    21.1098 pixelpipe data: full       [export]                                (   0/   0) 5264x3904 scale=1.0000 --> (   0/   0) 5264x3904 scale=1.0000 
    21.1098 pixelpipe process CPU      [export]         rawprepare             (   0/   0) 5264x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RAW
    21.1198 pixelpipe process CPU      [export]         temperature            (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RAW
    21.1338 pixelpipe process CPU      [export]         highlights             (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RAW
    21.1554 opposed chroma CPU         [export]         highlights             (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 red: 0.0000, green: 0.0000, blue: 0.0000 for hash=a2ed7cb62a153808
    21.1646 pixelpipe process CPU      [export]         demosaic               (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RAW -> IOP_CS_RGB
    21.2590 pixelpipe process CPU      [export]         basecurve              (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RGB
    21.3091 pixelpipe process CPU      [export]         colorin                (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RGB -> IOP_CS_LAB
    21.3092 matrix conversion on CPU   [export]         colorin                (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 `matriz de color estándar'
    21.3824 pixelpipe process CPU      [export]         sharpen                (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_LAB
    21.4277 pixelpipe process CPU      [export]         colorout               (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_LAB -> IOP_CS_RGB
    21.7096 pixelpipe process CPU      [export]         finalscale             (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 IOP_CS_RGB
    21.7096 clip_and_zoom_roi          [export]         finalscale             (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 
    21.7483 cache report               [export]                                2 lines (important=0, used=0, invalid=0). Using 627MB, limit=0MB. Hits/run=0.00. Hits/test=0.000
    21.7483 pixelpipe finished         [export]                                (   0/   0) 5200x3904 scale=1.0000 --> (   0/   0) 5200x3904 scale=1.0000 

    26.9184 [export_job] exported to `/home/myuser/Fotos/Mías/Lugares/Europa/España/Lagunas Ruidera y Tablas Daimiel/_1020827.tif'
   126.4553 Session fullpipe cache report. hits/run=0.00, hits/test=0.000

As can be seen, the “export_job” does not even appear.

Regarding openCL, unfortunately, for the Tumbleweed version of openSUSE, AMD does not offer the compiled version of amdgpu-pro (ROCm) and as it is not open source, I cannot compile it and consequently I cannot make use of the GPU with openCL :pensive:

It’s not an openCL issue.

I found an RW2 image with similar dimensions as yours (5200x3904). It took a long time to encode at 8 bit (I cant tell what your settings are for bit depth).

I know encoding lossless takes time and I’m not sure how optimize it currently is. It might be using just one CPU core.

1 Like

Also libjxl is likely relatively unoptimized compared to other libs like tiff/jpg/png

After about 35 minutes, debug file showed this message

1187.8119 [jxl] libjxl call failed with err 1 (src/imageio/format/jxl.c#L375)
  1187.8192 [imageio_storage_disk] could not export to file: `/home/myuser/PhotoPath/_1020827.jxl'!

Also, when I let those 35 minutes elapse until I got that error, when I closed Darktable, it no longer loaded in memory.

But the time it took for the error to occur is not at all normal, nor does it take that long with only one CPU thread. I have exported images of that size of 16 bits as I said with other software without problems and without taking that time. In all cases, it was “lossless” export to JXL.

I don’t know what libraries the other applications mentioned use, but none of them fail to export.

According to

JXL should be about as fast to encode as JPG. I don’t know if that applies to the lossless mode.

You are right. You can export from any of the other applications mentioned and you will find that it takes even less time than exporting to TIFF.