Description
To Reproduce
- Open a raw file from a Canon EOS D60 (not to be confused with a Canon EOS 60D, which came quite a bit later).
- Observe wrong colors (it's usually extremely green).
A Canon D60 is a very old camera, but I used it a several years and would love all of my photo library to work in darktable. 😉
Expected behavior
Images should have natural colors. Opening in other raw editors, such as RawTherapee, gives expected results.
It's not a color balance issue, as greens persist in the dark parts of an image even after a color balance attempt to fix.
Also, I should note that I have had a handful of cameras since, both from Canon (5DmkII) and Fuji cameras, and colors are fine from default. And I also know not to expect raws to look like out of camera JPEGs and that different raw processors handle things differently, but darktable with a D60 is something else (clearly a bug somewhere).
Screenshots
darktable, with modern defaults (Filmic & new color module for white balance):

Platform
- darktable version : 3.5.0~git2563.319d682233-6084.1, but this happens in 3.4 as well.
- OS : Linux - kernel 5.12.11-300.fc34.x86_64
- Linux - Distro : Fedora 34
- Memory : 16 G
- Graphics card : Intel 620
- Graphics driver : i915
- OpenCL installed : yes, Intel Neo: intel-opencl-21.23.20043-1.fc34.x86_64
- OpenCL activated : yes
- Xorg : XWayland
- Desktop : GNOME
- GTK+ : gtk3-3.24.29-1.fc34.x86_64
- gcc : 11.1.1 20210531 (Red Hat 11.1.1-3)
Additional context
Canon D60 raw files had sidecar JPEG previews when raws were taken. Here's the raw and the ".thm" sidecar:
CRW_1456.zip
And the .thm renamed to a JPEG so GitHub accepts it:

And the same for the bird photo:
CRW_2869.zip

-
Can you reproduce with another darktable version(s)? Yes, 3.4. I am pretty sure it worked fine a while ago, but didn't work in 3.4 and possibly not 3.2... but I think it worked before that?
-
Can you reproduce with a RAW or Jpeg or both? Most D60 raws have this issue to one degree or another.
-
Are the steps above reproducible with a fresh edit (i.e. after discarding history)? Yes
-
If the issue is with the output image, attach an XMP file if (you'll have to change the extension to
.txt) -
Is the issue still present using an empty/new config-dir (e.g. start darktable with --configdir "/tmp")? Yes
-
Do you use lua scripts? Yes, but it happens with a fresh config, with no Lua scripts enabled.
Changing the color balance does help somewhat, especially with some photos, but it never fixes the problem. And some photos are worse than others, but underexposed photos or those with details at the dark end are especially affected (even after white balance correction).
Additionally, I am happy to license these raw files as CC0 and would cheerfully submit more raw files that were taken under different conditions, if it helps. Unfortunately, I gave this camera to my sister (who used it to shoot in JPEG) many years ago, so I only have my existing collection.



