Skip to content

Exposure Module: Tooltip change + Code overhaul#21472

Open
anoderay wants to merge 2 commits into
darktable-org:masterfrom
anoderay:exposure_tooltip
Open

Exposure Module: Tooltip change + Code overhaul#21472
anoderay wants to merge 2 commits into
darktable-org:masterfrom
anoderay:exposure_tooltip

Conversation

@anoderay

@anoderay anoderay commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

While documenting the exposure module's Highlight Preservation Mode I thought about its tooltip. In my opinion the mention of having to use a tonemapper to avoid highlight clipping is not necessary. : Most users are using a tonemapper anyway and at least to me (and this poster) it was more confusing then helping. Also darktable doesn't warn about potential highlight clipping in other modules that might raise highlights (like tone equalizer, exposure module itself etc.).

While I was at it, I noticed the code comment in _get_highlight_bias() was no longer accurate. It listed only Nikon and Fuji. I updated it to point to _check_highlight_preservation() in src/common/exif.cc, where the per-camera detection actually happens.

anoderay added 2 commits July 1, 2026 11:53
Most users use a tonemapper anyway and we don't warn about having to use a tonemapper when e.g. raising exposure manually or using tone equalizer. Also the tooltip didn't mention AgX which confused at least one user.
@MStraeten

Copy link
Copy Markdown
Collaborator

Also darktable doesn't warn about potential highlight clipping in other modules that might raise highlights (like tone equalizer, exposure module itself etc.).

as long as you’re using scene referred modules, those won’t cause clipping. Clipping occurs if you don’t use a tonemapper to bring a large tonal range into a small one. E.g. by using display referred modules simply ignoring everything outside the 0..1 range. As long as you are in scene referred mode, use proper modules abtrage default pixelpipe position and then use a tonemapper, there’s no risk for clipping.

So why darktable should warn you, if you point your gun to your feet and then press the trigger …

@anoderay

anoderay commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator Author

as long as you’re using scene referred modules, those won’t cause clipping.

Exactly my point - we don't need to warn about potential clipping in the exposure module as the tooltip currently does.

@ralfbrown

Copy link
Copy Markdown
Collaborator

I wouldn't call a comment change a code overhaul, but it's appropriate and avoids further divergence between comments and actuality if more model support (e.g. Sony) is added in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants