-
Notifications
You must be signed in to change notification settings - Fork 1.2k
White balance presets
Most (if not all) cameras allow choosing white balance preset (like Sunny
, shade
, flash
etc). Every camera has different parameters that allow changing white balance and exactly that data is used to create white balance presets.
Many cameras offer finetuning of white balance to allow you greater control of it during shooting. darktable too can take advantage of it, so if you'd like please consider providing samples with finetuning.
darktable has 2 tools to extract white balance data from images: extract_wb
script and easier extract_wb_from_images.sh
shell script.
Both scripts require exiftool
utility.
extract_wb
is a ruby script, available only in darktable source package
please install nekogiri
gem
First things first: the content of images doesn't matter at all for white balance presets extraction. You can even have the cap on 😉 Only make sure you are shooting in RAW.
There are 2 ways of getting the presets: Non-finetuned and finetuned. We prefer to have finetuned presets as this allows more control in darktable.
This is easiest take 1 shot for every white balance preset except for Auto
or Custom
preset. Make sure there is no white balance finetuning enabled.
For every white balance preset available in your camera,except for Auto
(Custom
or others) that allow finetuning you'd need to take shots with finetuning on amber-blue
axis. Make sure you don't move finetuning on magenta-green
axis. Consult your camera manual beforehand.
Here's the procedure
- choose white balance preset
- move finetuning maximally towards amber, then take shot.
- move 1 step (or if your camera allows - half step) away from amber and towards blue. take shot
- repeat moving towards blue and taking shots till you reach blue.
- repeat from 1st step of procedure choosing next white balance preset
depending on your camera this may mean anything from 3 to 25 shots per white balance preset.
If getting finetuned shots is too much work, but you'd still want to have finetuning available, you can do 3 shots per each white balance preset:
- maximum amber
- centered (no finetuning)
- maximum blue.
darktable will then be able to interpolate. however the interpolated values might not match the ones produced by camera.
Put all shots in one directory. Then open said directory in terminal and execute chosen script.
This tutorials assumes that darktable tools are in /usr/share/darktable/tools
directory.
execute
$ /usr/share/darktable/tools/extract_wb_from_images.sh *
and send us resulting package via white balance issue
A developer will take care of the data and create presets in darktable
execute
$ /usr/share/darktable/tools/extract_wb *
You can now create new white balance issue including generated data or prefferably - clone darkrable repo, paste data in appropriate place (sorted alphabetically) in src/external/wb_presets.c
, compile darktable using building instructions from Developer's portal, check if presets work and then create a PR with your changes.
darktable wiki is licensed under the Creative Commons BY-SA 4.0 terms.