Can't import tif image in darktable 5.0.0

Hi,
I have had to remove a lot of images from the database in darktable 5 and re-import them (I might come back to the reason in another thread). A few tif images have refused to import properly, they are represented by this new “question mark” placeholder. When I click on them, I get an error message, saying “image ‘myfilename.tif’ could not be loaded. unsupported feature in file”. What unsupported feature might that be, and how can it be fixed?

These files have been in my database for a long time (since dt 4.4 for the last two I encountered, that triggered this post) and I have never had problems with them before.
Here is a link to one of them in case anyone wants to try for themselves:

Edit: Formatting
Edit 2: Also, these tif files are generated by darktable!

The file name looks suspect. What if you rename it without the ae character?

Other tif files in the same folders have the same base name and they are ok. And as I said, they have been ok before, and as I just edited, they are generated by darktable.

If I am correct, the faulty files are generated by darktable for further editing in Gimp. The resulting tif files from Gimp are ok in darktable.

@hpbirkeland Your file loads fine in 5.0 for windows

So any chance this is a multipage tiff??

I got this when opening it the first time…still need to check…don’t have DT installed where I am…

image

@priort nah, can darktable generate those?

Come to think of it, these were generated on a Mac, and now I am on Linux Mint. Any chance darktable uses different tif libraries or codecs on Mac and Linux?

Ya seemed like a stretch but this was the warning I got after opening your link in chrome…funny…

Check GitHub closed issues. I think that was a bug with tiff in 5.0. It should be fixed in master.

I opened the tiff in GIMP to look for possible multiple layers or pages and saw none. I then opened the image in DT V5.1 latest weekly build for windows with no problems or warnings.

Yup, might be this one: Darktable 5.0.0 - Some .tiff files return "Image x.tiff could not be loaded unsupported feature in file" · Issue #18187 · darktable-org/darktable · GitHub

So I’ll just be patient :slight_smile:

No, this was about something completely different, a regression in reading monochrome files with an alpha channel.

I don’t see any features in the file you provided that would prevent the TIFF loader from reading the file and it actually loads fine in my darktable 5.0.0 on Windows.

Ok. No, it’s weird. Maybe it will work if I open them in another app and save them again. Anyway, It’s not a very big problem for me.

Try importing a file that darktable could not load by running darktable with the command line option ‘-d imageio’ and show what is written to the log

1 Like

When I run “darktable -d imageio”, I get this:

hpb@hplaptop-asus:~$ darktable -d imageio
darktable 5.0.0
Copyright (C) 2012-2024 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.4.0
Colord → ENABLED
gPhoto2 → ENABLED
GMIC → ENABLED - Compressed LUTs are supported
GraphicsMagick → ENABLED
ImageMagick → DISABLED
libavif → DISABLED
libheif → ENABLED
libjxl → ENABLED
LibRaw → ENABLED - Version 0.22.0-Devel202403
OpenJPEG → ENABLED
OpenEXR → ENABLED
WebP → ENABLED

See resources | darktable for detailed documentation.
See Sign in to GitHub · GitHub to report bugs.

 0.0011 [dt starting]

darktable -d imageio
2,7960 [rawspeed_open] extensions list to ignore: cr3 tiff' 2,9663 [rawspeed_open] extensions list to ignore: cr3 tiff’
2,9663 [rawspeed_open] extensions list to ignore: cr3 tiff' 2,9664 [rawspeed_open] extensions list to ignore: cr3 tiff’
2,9664 [rawspeed_open] extensions list to ignore: cr3 tiff' 3,0977 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic denoiseprofile lens exposure crop colorin channelmixerrgb diffuse diffuse.1 colorbalancergb sigmoid colorout gamma 3,0978 [dt_imageio_export] thumbnail imgid 729, 5517x3678 --> 1350x900 (scale=0,2447, maxscale=1,0000). upscale=no, hq=no 3,4164 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens exposure crop colorin channelmixerrgb colorbalancergb sigmoid colorout gamma 3,4165 [dt_imageio_export] thumbnail imgid 728, 6013x3382 --> 1440x809 (scale=0,2395, maxscale=1,0000). upscale=no, hq=no 3,4205 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic denoiseprofile lens hazeremoval retouch exposure colorin channelmixerrgb diffuse diffuse.1 colorbalancergb sigmoid colorout gamma 3,4205 [dt_imageio_export] thumbnail imgid 726, 6014x4010 --> 1349x900 (scale=0,2244, maxscale=1,0000). upscale=no, hq=no 3,4583 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic denoiseprofile lens hazeremoval exposure colorin channelmixerrgb diffuse diffuse.1 colorbalancergb sigmoid colorout gamma 3,4584 [dt_imageio_export] thumbnail imgid 725, 6014x4010 --> 1349x900 (scale=0,2244, maxscale=1,0000). upscale=no, hq=no 3,5023 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic denoiseprofile lens hazeremoval retouch exposure colorin channelmixerrgb colorbalancergb sigmoid colorout gamma 3,5024 [dt_imageio_export] thumbnail imgid 727, 6014x4010 --> 1349x900 (scale=0,2244, maxscale=1,0000). upscale=no, hq=no 12,1362 [rawspeed_open] extensions list to ignore: cr3 tiff’
12,3676 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift toneequal colorin channelmixerrgb colorbalancergb colorout gamma
12,3676 [dt_imageio_export] thumbnail imgid 6611, 4768x3166 → 338x225 (scale=0,0711, maxscale=1,0000). upscale=no, hq=no
12,4231 [rawspeed_open] extensions list to ignore: cr3 tiff' 12,6571 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens flip exposure toneequal crop colorin channelmixerrgb diffuse diffuse.1 primaries colorequal colorbalancergb sigmoid colorout gamma 12,6571 [dt_imageio_export] thumbnail imgid 6610, 3288x4110 --> 180x225 (scale=0,0547, maxscale=1,0000). upscale=no, hq=no 12,7643 [rawspeed_open] extensions list to ignore: cr3 tiff’
12,9955 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift exposure toneequal colorin channelmixerrgb diffuse diffuse.1 colorbalancergb sigmoid colorout gamma
12,9956 [dt_imageio_export] thumbnail imgid 6609, 4598x3053 → 338x225 (scale=0,0737, maxscale=1,0000). upscale=no, hq=no
13,2995 [rawspeed_open] extensions list to ignore: cr3 tiff' 13,5339 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift toneequal crop colorin channelmixerrgb diffuse diffuse.1 colorbalancergb sigmoid colorout gamma 13,5339 [dt_imageio_export] thumbnail imgid 6605, 2934x2934 --> 225x225 (scale=0,0767, maxscale=1,0000). upscale=no, hq=no 13,6354 [rawspeed_open] extensions list to ignore: cr3 tiff’
13,8615 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens colorin channelmixerrgb diffuse colorbalancergb sigmoid colorout gamma
13,8615 [dt_imageio_export] thumbnail imgid 6604, 4952x3288 → 338x225 (scale=0,0684, maxscale=1,0000). upscale=no, hq=no
13,9283 [rawspeed_open] extensions list to ignore: cr3 tiff' 14,1425 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens flip crop colorin channelmixerrgb colorbalancergb sigmoid colorout gamma 14,1425 [dt_imageio_export] thumbnail imgid 6603, 3288x3288 --> 225x225 (scale=0,0684, maxscale=1,0000). upscale=no, hq=no 14,2427 [rawspeed_open] extensions list to ignore: cr3 tiff’
14,4635 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift crop colorin channelmixerrgb diffuse primaries colorbalancergb sigmoid colorout gamma
14,4636 [dt_imageio_export] thumbnail imgid 6601, 3000x3000 → 225x225 (scale=0,0750, maxscale=1,0000). upscale=no, hq=no
14,5253 [rawspeed_open] extensions list to ignore: cr3 tiff' 14,7589 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift flip exposure toneequal colorin channelmixerrgb diffuse colorbalancergb sigmoid colorzones colorout gamma 14,7590 [dt_imageio_export] thumbnail imgid 6600, 3120x4700 --> 149x225 (scale=0,0479, maxscale=1,0000). upscale=no, hq=no 14,8157 [rawspeed_open] extensions list to ignore: cr3 tiff’
15,0303 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift exposure toneequal colorin channelmixerrgb diffuse colorbalancergb sigmoid colorzones colorout gamma
15,0303 [dt_imageio_export] thumbnail imgid 6599, 4757x3158 → 338x225 (scale=0,0712, maxscale=1,0000). upscale=no, hq=no
15,1022 [rawspeed_open] extensions list to ignore: cr3 tiff' 15,3191 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic denoiseprofile lens flip exposure exposure.1 toneequal crop colorin channelmixerrgb diffuse colorbalancergb sigmoid colorout gamma 15,3191 [dt_imageio_export] thumbnail imgid 6598, 3139x3139 --> 225x225 (scale=0,0717, maxscale=1,0000). upscale=no, hq=no 15,3839 [rawspeed_open] extensions list to ignore: cr3 tiff’
15,6031 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic denoiseprofile lens exposure exposure.1 toneequal crop colorin channelmixerrgb diffuse colorbalancergb sigmoid colorout gamma
15,6031 [dt_imageio_export] thumbnail imgid 6597, 4798x3185 → 338x225 (scale=0,0706, maxscale=1,0000). upscale=no, hq=no
15,6811 [rawspeed_open] extensions list to ignore: cr3 tiff' 15,8963 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens flip crop colorin channelmixerrgb diffuse colorbalancergb colorbalancergb.1 channelmixerrgb.1 sigmoid colorout gamma 15,8963 [dt_imageio_export] thumbnail imgid 6596, 2858x2858 --> 225x225 (scale=0,0787, maxscale=1,0000). upscale=no, hq=no 15,9588 [rawspeed_open] extensions list to ignore: cr3 tiff’
16,1670 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens flip crop colorin channelmixerrgb diffuse colorbalancergb channelmixerrgb.1 sigmoid colorout gamma
16,1671 [dt_imageio_export] thumbnail imgid 6595, 2858x2858 → 225x225 (scale=0,0787, maxscale=1,0000). upscale=no, hq=no
16,2258 [rawspeed_open] extensions list to ignore: cr3 tiff' 16,4599 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens cacorrectrgb hazeremoval exposure colorin channelmixerrgb colorbalancergb sigmoid colorout gamma 16,4599 [dt_imageio_export] thumbnail imgid 6594, 4952x3288 --> 338x225 (scale=0,0684, maxscale=1,0000). upscale=no, hq=no 16,5594 [rawspeed_open] extensions list to ignore: cr3 tiff’
16,7630 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens cacorrectrgb hazeremoval exposure colorin channelmixerrgb diffuse colorbalancergb sigmoid colorout gamma
16,7630 [dt_imageio_export] thumbnail imgid 6593, 4952x3288 → 338x225 (scale=0,0684, maxscale=1,0000). upscale=no, hq=no
16,8745 [rawspeed_open] extensions list to ignore: cr3 tiff' 17,0685 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens cacorrectrgb hazeremoval exposure colorin channelmixerrgb diffuse colorbalancergb sigmoid colorout gamma 17,0685 [dt_imageio_export] thumbnail imgid 6592, 4952x3288 --> 338x225 (scale=0,0684, maxscale=1,0000). upscale=no, hq=no 17,1543 [rawspeed_open] extensions list to ignore: cr3 tiff’
17,3533 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens flip exposure crop colorin channelmixerrgb diffuse diffuse.1 colorbalancergb sigmoid colorout gamma
17,3533 [dt_imageio_export] thumbnail imgid 6591, 2877x3837 → 168x225 (scale=0,0586, maxscale=1,0000). upscale=no, hq=no
17,4016 [rawspeed_open] extensions list to ignore: cr3 tiff' 17,6057 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens exposure colorin channelmixerrgb sigmoid colorout gamma 17,6057 [dt_imageio_export] thumbnail imgid 6590, 4952x3288 --> 338x225 (scale=0,0684, maxscale=1,0000). upscale=no, hq=no 17,6533 [rawspeed_open] extensions list to ignore: cr3 tiff’
17,8814 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens cacorrectrgb retouch exposure exposure.1 crop colorin channelmixerrgb channelmixerrgb.1 diffuse colorbalancergb sigmoid colorout gamma
17,8815 [dt_imageio_export] thumbnail imgid 6589, 4097x3277 → 281x225 (scale=0,0687, maxscale=1,0000). upscale=no, hq=no
17,9572 [rawspeed_open] extensions list to ignore: cr3 tiff' 18,1594 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens cacorrectrgb exposure exposure.1 crop colorin channelmixerrgb diffuse colorbalancergb channelmixerrgb.1 sigmoid colorout gamma 18,1594 [dt_imageio_export] thumbnail imgid 6588, 3288x3288 --> 225x225 (scale=0,0684, maxscale=1,0000). upscale=no, hq=no 18,2214 [rawspeed_open] extensions list to ignore: cr3 tiff’
18,4286 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens cacorrectrgb exposure exposure.1 crop colorin channelmixerrgb colorbalancergb colorbalancergb.1 sigmoid colorout gamma
18,4287 [dt_imageio_export] thumbnail imgid 6587, 3288x3288 → 225x225 (scale=0,0684, maxscale=1,0000). upscale=no, hq=no
18,4989 [rawspeed_open] extensions list to ignore: cr3 tiff' 18,7200 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift flip exposure toneequal colorin channelmixerrgb diffuse diffuse.1 colorbalancergb colorout gamma 18,7201 [dt_imageio_export] thumbnail imgid 6586, 3063x4614 --> 149x225 (scale=0,0488, maxscale=1,0000). upscale=no, hq=no 18,7805 [rawspeed_open] extensions list to ignore: cr3 tiff’
18,9878 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift exposure crop colorin channelmixerrgb diffuse diffuse.1 colorbalancergb sigmoid colorout gamma
18,9879 [dt_imageio_export] thumbnail imgid 6585, 3134x3134 → 225x225 (scale=0,0718, maxscale=1,0000). upscale=no, hq=no
19,0541 [rawspeed_open] extensions list to ignore: cr3 tiff' 19,2772 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens flip exposure colorin channelmixerrgb diffuse diffuse.1 colorbalancergb sigmoid colorout gamma 19,2773 [dt_imageio_export] thumbnail imgid 6584, 3288x4952 --> 149x225 (scale=0,0454, maxscale=1,0000). upscale=no, hq=no 19,3440 [rawspeed_open] extensions list to ignore: cr3 tiff’
19,5662 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens flip exposure colorin channelmixerrgb diffuse colorbalancergb sigmoid colorout gamma
19,5662 [dt_imageio_export] thumbnail imgid 6583, 3288x4952 → 149x225 (scale=0,0454, maxscale=1,0000). upscale=no, hq=no
19,6534 [rawspeed_open] extensions list to ignore: cr3 tiff' 19,8582 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift flip exposure crop colorin channelmixerrgb colorbalancergb sigmoid colorout gamma 19,8583 [dt_imageio_export] thumbnail imgid 6582, 2728x4110 --> 149x225 (scale=0,0547, maxscale=1,0000). upscale=no, hq=no 19,9013 [rawspeed_open] extensions list to ignore: cr3 tiff’
20,1252 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens cacorrectrgb ashift exposure colorin channelmixerrgb diffuse.1 colorbalancergb sigmoid colorout gamma
20,1252 [dt_imageio_export] thumbnail imgid 6581, 4614x3064 → 338x225 (scale=0,0734, maxscale=1,0000). upscale=no, hq=no
20,2821 [rawspeed_open] extensions list to ignore: cr3 tiff' 20,5056 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens cacorrectrgb ashift flip exposure toneequal colorin channelmixerrgb diffuse.1 colorbalancergb sigmoid colorout gamma 20,5056 [dt_imageio_export] thumbnail imgid 6580, 3124x4706 --> 149x224 (scale=0,0478, maxscale=1,0000). upscale=no, hq=no 20,6035 [rawspeed_open] extensions list to ignore: cr3 tiff’
20,7813 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift flip exposure toneequal colorin channelmixerrgb diffuse colorbalancergb sigmoid colorout gamma
20,7814 [dt_imageio_export] thumbnail imgid 6579, 2753x3676 → 168x225 (scale=0,0612, maxscale=1,0000). upscale=no, hq=no
20,8632 [rawspeed_open] extensions list to ignore: cr3 tiff' 21,0522 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic exposure colorin channelmixerrgb diffuse colorbalancergb sigmoid colorout gamma 21,0522 [dt_imageio_export] thumbnail imgid 6578, 4016x3008 --> 300x225 (scale=0,0748, maxscale=1,0000). upscale=no, hq=no 21,1323 [rawspeed_open] extensions list to ignore: cr3 tiff’
21,3197 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic ashift exposure colorin channelmixerrgb diffuse nlmeans colorbalancergb sigmoid colorout gamma
21,3197 [dt_imageio_export] thumbnail imgid 6577, 3932x2945 → 300x225 (scale=0,0764, maxscale=1,0000). upscale=no, hq=no
21,4318 [rawspeed_open] extensions list to ignore: cr3 tiff' 21,6936 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift exposure colorin channelmixerrgb diffuse diffuse.1 colorbalancergb filmicrgb colorout gamma 21,6936 [dt_imageio_export] thumbnail imgid 6576, 5373x3583 --> 337x225 (scale=0,0628, maxscale=1,0000). upscale=no, hq=no 21,7790 [rawspeed_open] extensions list to ignore: cr3 tiff’
22,0556 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift exposure colorin channelmixerrgb diffuse diffuse.1 colorbalancergb filmicrgb colorout gamma
22,0557 [dt_imageio_export] thumbnail imgid 6575, 5268x3513 → 337x224 (scale=0,0640, maxscale=1,0000). upscale=no, hq=no
22,1250 [rawspeed_open] extensions list to ignore: cr3 tiff' 22,4038 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift exposure crop colorin channelmixerrgb diffuse diffuse.1 colorbalancergb filmicrgb colorout gamma 22,4039 [dt_imageio_export] thumbnail imgid 6574, 5383x3027 --> 360x202 (scale=0,0669, maxscale=1,0000). upscale=no, hq=no 22,4925 [rawspeed_open] extensions list to ignore: cr3 tiff’
22,7712 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic colorin colorbalancergb colorout gamma
22,7712 [dt_imageio_export] thumbnail imgid 6573, 6014x4010 → 337x225 (scale=0,0561, maxscale=1,0000). upscale=no, hq=no
22,8322 [rawspeed_open] extensions list to ignore: cr3 tiff' 23,0955 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens exposure colorin channelmixerrgb diffuse diffuse.1 colorbalancergb filmicrgb colorout gamma 23,0956 [dt_imageio_export] thumbnail imgid 6572, 6014x4010 --> 337x225 (scale=0,0561, maxscale=1,0000). upscale=no, hq=no 23,1878 [rawspeed_open] extensions list to ignore: cr3 tiff’
23,4892 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens exposure colorin channelmixerrgb diffuse diffuse.1 colorbalancergb filmicrgb colorout gamma
23,4893 [dt_imageio_export] thumbnail imgid 6571, 6014x4010 → 337x225 (scale=0,0561, maxscale=1,0000). upscale=no, hq=no
23,5731 [rawspeed_open] extensions list to ignore: cr3 tiff' 23,8559 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens exposure colorin channelmixerrgb diffuse diffuse.1 colorbalancergb filmicrgb colorout gamma 23,8559 [dt_imageio_export] thumbnail imgid 6570, 6014x4010 --> 337x225 (scale=0,0561, maxscale=1,0000). upscale=no, hq=no 23,9346 [rawspeed_open] extensions list to ignore: cr3 tiff’
24,2187 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift flip exposure colorin channelmixerrgb diffuse diffuse.1 colorbalancergb filmicrgb colorout gamma
24,2187 [dt_imageio_export] thumbnail imgid 6569, 3848x5771 → 150x225 (scale=0,0390, maxscale=1,0000). upscale=no, hq=no
24,2730 [rawspeed_open] extensions list to ignore: cr3 tiff' 24,5453 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens flip exposure crop colorin channelmixerrgb diffuse diffuse.1 colorbalancergb filmicrgb colorout gamma 24,5454 [dt_imageio_export] thumbnail imgid 6568, 3919x4899 --> 179x225 (scale=0,0459, maxscale=1,0000). upscale=no, hq=no 24,6040 [rawspeed_open] extensions list to ignore: cr3 tiff’
24,9117 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens exposure colorin channelmixerrgb diffuse diffuse.1 colorbalancergb filmicrgb colorout gamma
24,9117 [dt_imageio_export] thumbnail imgid 6567, 6014x4010 → 337x225 (scale=0,0561, maxscale=1,0000). upscale=no, hq=no
24,9963 [rawspeed_open] extensions list to ignore: cr3 tiff' 25,3118 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens ashift exposure colorin channelmixerrgb diffuse colorbalancergb filmicrgb colorout gamma 25,3119 [dt_imageio_export] thumbnail imgid 6566, 5874x3917 --> 337x225 (scale=0,0574, maxscale=1,0000). upscale=no, hq=no 25,3732 [rawspeed_open] extensions list to ignore: cr3 tiff’
25,6626 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic denoiseprofile lens flip exposure toneequal toneequal.1 crop colorin channelmixerrgb diffuse diffuse.1 colorbalancergb colorbalancergb.1 colorout gamma
25,6627 [dt_imageio_export] thumbnail imgid 6565, 4009x5012 → 179x225 (scale=0,0449, maxscale=1,0000). upscale=no, hq=no
25,7517 [rawspeed_open] extensions list to ignore: cr3 tiff' 26,0307 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic denoiseprofile lens ashift exposure toneequal toneequal.1 colorin channelmixerrgb diffuse diffuse.1 colorbalancergb colorbalancergb.1 colorout gamma 26,0308 [dt_imageio_export] thumbnail imgid 6564, 5751x3835 --> 337x225 (scale=0,0587, maxscale=1,0000). upscale=no, hq=no 26,2835 [rawspeed_open] extensions list to ignore: cr3 tiff’
26,5605 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens flip exposure crop colorin channelmixerrgb diffuse diffuse.1 colorbalancergb sigmoid colorout gamma
26,5605 [dt_imageio_export] thumbnail imgid 6562, 4009x5012 → 179x225 (scale=0,0449, maxscale=1,0000). upscale=no, hq=no
26,6299 [rawspeed_open] extensions list to ignore: cr3 tiff' 26,9785 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic lens exposure colorin channelmixerrgb diffuse diffuse.1 colorbalancergb sigmoid colorout gamma 26,9785 [dt_imageio_export] thumbnail imgid 6561, 6014x4010 --> 337x225 (scale=0,0561, maxscale=1,0000). upscale=no, hq=no 36,3816 [rawspeed_open] extensions list to ignore: cr3 tiff’
36,6725 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic denoiseprofile flip retouch exposure toneequal toneequal.1 exposure.1 crop colorin channelmixerrgb channelmixerrgb.1 diffuse diffuse.1 colorbalancergb filmicrgb bilat colorout gamma
36,6726 [dt_imageio_export] thumbnail imgid 6558, 4009x5346 → 168x225 (scale=0,0421, maxscale=1,0000). upscale=no, hq=no
36,7549 [rawspeed_open] extensions list to ignore: `cr3 tiff’
37,0394 [dt_imageio_export_with_flags] modules: rawprepare temperature highlights demosaic denoiseprofile lens ashift exposure exposure.1 toneequal toneequal.1 crop colorin channelmixerrgb channelmixerrgb.1 diffuse diffuse.1 colorbalancergb filmicrgb bilat colorout gamma

And a whole lot more of the same until I do "import > add to library, then I get

[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 18246 (0x4746) encountered
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 36867 (0x9003) encountered
83,4095 [tiff_open] error: CMYK (or multiink) TIFFs are not supported.
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 18246 (0x4746) encountered
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 36867 (0x9003) encountered

There’s something about CMYK images in there, but this is RGB, and Gimp sees it as RGB color 16 bit gamma integer, sRGB, 1 layer.
I also tried to export from Gimp as a new tif file. This imports fine in darktable, and the end of the log is

[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 18246 (0x4746) encountered
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 36867 (0x9003) encountered
36,0935 [tiff_open] 4010x4009 16bpp, 3 samples per pixel
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 18246 (0x4746) encountered
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 36867 (0x9003) encountered

I am NOT getting [tiff_open] error: CMYK (or multiink) TIFFs are not supported for your file.

Are you sure the file you shared via Google Drive is the one that had the reading problem?

Yes, the one on Google Drive is the same as the one I used when I got the above.

With the current master on Linux, it loads fine (the log was generated using -d all -d verbose):

kofa@eagle:~/darktable$ grep -i tif /tmp/tif.log 
 /home/kofa/darktable-master/bin/darktable --configdir /tmp/dt-config -d all -d verbose /tmp/Regnvær_0027.tif
     0.9457 [imageio_load_module_format] loading `tiff' from /home/kofa/darktable-master/lib/darktable/plugins/imageio/format/libtiff.so
     1.4792 [xmp_import] creating tag: darktable|format|tif
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 18246 (0x4746) encountered
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 36867 (0x9003) encountered
     1.4889 [tiff_open] 4010x4009 16bpp, 3 samples per pixel
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 18246 (0x4746) encountered
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 36867 (0x9003) encountered
     3.3420 [dev_process_image] pixel pipeline took 0.233 secs (1.210 CPU) processing `Regnvær_0027.tif'
     3.5303 [dev_process_image] pixel pipeline took 0.089 secs (0.199 CPU) processing `Regnvær_0027.tif'
   349.9794 [dev_process_image] pixel pipeline took 0.089 secs (0.576 CPU) processing `Regnvær_0027.tif'
   352.1500 [dev_process_image] pixel pipeline took 0.073 secs (0.539 CPU) processing `Regnvær_0027.tif'
   352.2170 [dev_process_image] pixel pipeline took 0.067 secs (0.557 CPU) processing `Regnvær_0027.tif'
   352.2848 [dev_process_image] pixel pipeline took 0.068 secs (0.553 CPU) processing `Regnvær_0027.tif'
   352.3454 [dev_process_image] pixel pipeline took 0.061 secs (0.550 CPU) processing `Regnvær_0027.tif'

With the 5.0 AppImage, it won’t load:

kofa@eagle:~/darktable$ grep -i tif /tmp/tif-appimage.log 
 /tmp/.mount_Darkta5oezHm/usr/bin/darktable --configdir /tmp/dt-config-appimage -d all -d verbose /tmp/Regnvær_0027.tif
     1.2652 [imageio_load_module_format] loading `tiff' from /tmp/.mount_Darkta5oezHm/usr/lib/x86_64-linux-gnu/darktable/plugins/imageio/format/libtiff.so
     2.4457 [xmp_import] creating tag: darktable|format|tif
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 18246 (0x4746) encountered
[tiff_open] warning: TIFFReadDirectory: Unknown field with tag 36867 (0x9003) encountered
     2.4572 [tiff_open] error: CMYK (or multiink) TIFFs are not supported.

The recent commits are:

commit 9d63eace105fafacb157d60ff9e02a0c8aba3808
Author: Victor Forsiuk <vvforce@gmail.com>
Date:   Mon Jan 27 23:20:23 2025 +0200

    Add error message for unsupported bit depth

commit 05881aa70818f8fc6da8d7a0143b2dda815c26f4
Author: Victor Forsiuk <vvforce@gmail.com>
Date:   Mon Jan 27 23:11:25 2025 +0200

    Add a comment about the range difference between CIELab and ICCLab

commit f8a918ef5989f99e0053592a007af0abf9a63016
Author: Victor Forsiuk <vvforce@gmail.com>
Date:   Mon Jan 27 21:50:25 2025 +0200

    Specify the file name in TIFF loader error messages

commit 2e333c572ad02d15d841d9794a666d63c7f6617d
Author: Victor Forsiuk <vvforce@gmail.com>
Date:   Sat Jan 11 17:14:25 2025 +0200

    Treat data with 2 samples per pixel as monochrome

commit 0e6fc28518b636cb4ff4f774455d3a36117db95c
Author: Victor Forsiuk <vvforce@gmail.com>
Date:   Sat Jan 11 16:37:57 2025 +0200

    Actually we can read TIFF files with arbitrary number of samples per pixel

commit ef1486164922aca21af8341bc8e1735f135c2ac6
Author: Ralf Brown <ralfbrown@users.noreply.github.com>
Date:   Sun Nov 10 15:05:59 2024 -0500

    use g_try_malloc instead of g_malloc where return is checked

So, there seem to have been relevant changes committed on 11 and 27 January.

I think I’ll just leave this for now. I’ll either track down all of these images and resave them in Gimp, or just wait for dt 5.1.

Thanks for your efforts so far, everyone!

No, you shouldn’t resave these images, it won’t help. They don’t contain any unsupported features and are definitely not encoded in CMYK. What darktable is reporting is a result of bugs in darktable.

You’ll have to wait for 5.0.1, which will contain a fix.

1 Like

@hpbirkeland The fix is ​​already in the nightly build. It would be nice if you could test it.

BTW, @kofa, the root cause of the problem was an uninitialized variable. Previously, the problem was hidden by a fallback loader that successfully read the image, but in 5.0.0, due to changes in its calling conditions, it is not called here. So no, the current (on the day you tested) master does not always read this file unlike 5.0.0, what you saw is just a consequence of the random nature of the bug.

1 Like