darktable with Canon R6 mk3 ?

Hi,
I’d like to use darktable with my Canon R6 mk3, official support is not there and who knows when it will happen.
Libraw seems to be the culprit although there seems to exist patches on github (GitHub - JuanPabloZambrano/LibRaw at canon-r6III-support · GitHub) for the common cases.

Does anybody know of a packaged version which includes these patches ?
or
Is there a laymans description somewhere for patching and building darktable from source ?

Thank you in advance

You can open the raw files. Set the black level to 512 (low ISO) and 2048 (high ISO). White level should be below 16382. Use a colour checker for the color calibration module to get the right colours and save as a preset.

To get the right white level you can use RawDigger or you can in darktable activate the raw clipping indicator. Your raw file needs clipped highlights.
Set the white level to 16383 and pull it down until you see clipped highlights from the raw clipping indicator.

Different camera modes may give you different clipping points. R6 for example clips at 16382, but when I use multi-exposure the clipping point is something like 12736.

2 Likes

it‘s quite easy. The darktable build process is well documented. So you just need a little bit of git skills to merge the mentioned pull request into your libraw submodule folder.
Or use my R6mIII related branch (GitHub - MStraeten/LibRaw at r6mIII · GitHub) to copy the different files from there…

If you’re on macOS you might use my recent builds (current OSX Build - #973 by MStraeten)

3 Likes

Thank’s for your answer and yes, I have used this solution - it seems to work ok but what is high iso, what is low iso et.c.

Thank you, I’ll give this a try.

Would it be ok to post here if I get into trouble or are there some other more suitable forum for such questions ?

ok here, so it can be found by other darktable users …

1 Like

Really cool someone made a build with the branch.

If anyone finds any issues , please let me know .
Canon files are the ones that I have found that need most work to correctly add support in libraw.
I think I have tested all modes in the r6 III but I don’t have it to check myself.

1 Like

thanks for your effort to make this available …

You will notice it if you set 512 when it should be 2048 or if you set 2048 when it should be 512.

Thanks for your answer.

I haven’t given much thought to the mechanics behind these numbers but was afraid there would be some not so easily spotted differences that eventually would bite me later…

Ok, I’m on Linux, LMDE 6, which pretty much is a Debian 12 with some Linux Mint enhancements.

So, I cloned darktable 5.4.1 sources and simply replaced the src/external/LibRaw directory contents with the LibRaw files Mr Zambrano graciously published on GitHub (link is in a previous post above).

I followed the instructions from the file README.md in the top darktable directory - where the build.sh file resides.

There was some issues with the dependencies, but in the end running the build.sh file and following the instructions after compiling the sources (dont forget the ‘sudo’ command) darktable builds cleanly, OpenCL support is not available but maybe that was to be expected as my system uses the noveau driver (Nvidia 1070).

At present, I’m happy - It Works !

Thank you for your guidance and Thank you Mr Zambrano for the code !

As always there are questions, I will adress those in another post when I’ve had time to learn a little of darktables human interface…

@MStraeten, now I built darktable with your LibRaw code, looks like it has some additional enhancements so I think I’ll go with that.
Works great so far !

Among support for new Sony cameras there seems to be some new data structures, changes to a few function calls and data types, may I ask - bug fixes or new functionality on the way ?

Anyway - Thank You for sharing your effort.

i just keep it up to date with recent libraw changes see: Commits · LibRaw/LibRaw · GitHub

i don’t have insights to the decisions of the maintainer to provide new features or bugfixes …

Can confirm, got Darktable working with Canon R6 Mk III CR3 raw files on Ubuntu 24.04.

Did the git clone of DT:
git clone --recurse-submodules --depth 1 GitHub - darktable-org/darktable: darktable is an open source photography workflow application and raw developer · GitHub

Downloaded the zip from here:

Unzipped, moved LibRaw to /darktable/src/external then from darktable source ran this:

./build.sh --prefix /opt/darktable --build-type Release --install --sudo

Many errors, apt install <many_pkgs>, build.sh finally compiled and built DT wihtout errors and installed in /opt/darktable.

cd /opt/darktable/bin and exec darktable. Comes up clean, can import CR3 files and edit them successfully.

Thanks for all help especially @MStraeten

Special thanks to @ JuanPabloZambrano for maintaining the repo.

@MStraeten , I’m interested in getting an R5 mark3 so interested in DT support. I can see from above that I could build it hopefully.
I can’t see any mark 3 issues in DT’s github (there is mark 2 material). And I’ve picked up that libraw may well not support mark 3 for some time.
Do you think mark3 support based on the material referenced above is likely to feature in the next DT release? (I appreciate you don’t have a crystal ball!)

as long as libraw doesn’t add support, might take years, no. Like for the R5m2, you’ll have to compile dt yourself for a while or use prepackaged builds with support for it

2 Likes
1 Like

EDIT: Managed to move forward and have built a straight 5.4.1 which seems to be fine on a quick test. Now I need to figure out how to incorporate the ZIP you referred to @m_b , any tips more than welcome…

For anyone interested, the download command I used is -
git clone --recurse-submodules --depth 1 --branch release-5.4.1 https://github.com/darktable-org/darktable.git <your folder name, optional>

--------------------------------------------
@m_b (or anyone) I’m on ubuntu (studio) 24.04 so I thought I’d copy you.
I’ve fallen at the first fence. Do you happen to have a log of what you did pls?
I’m trying to build a 5.4.1 (with R6 support of course)

I’ve installed dependencies. Done

git clone --recurse-submodules --depth 1 https://github.com/darktable-org/darktable.git ~/DT-541-20260514/darktable-code

to put it in its own folder. When I do
git branch -a
hoping to see 5.4.1, all I get is

* master
remotes/origin/HEAD -> origin/master
remotes/origin/master

so I don’t know how to checkout 5.4.1.
git checkout release-5.4.1
gives
error: pathspec ‘release-5.4.1’ did not match any file(s) known to git

If anyone has a Terminal log I could copy that would be much appreciated.

Try git fetch --all --tags
git tag -l to list and get the right name…

then maybe this

git checkout -b <new_branch_name> <tag_name>

create your own branch and set it at the correct tag??

I’m no expert so this might not help…