darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.81k stars 1.14k forks source link

Masks are lost when used in styles #17447

Open marc-fouquet opened 2 months ago

marc-fouquet commented 2 months ago

Describe the bug

When a module in a style has a mask, this mask is not correctly re-applied with the style.

Steps to reproduce

Result: The exposure module shows a mask-symbol, but the mask is fully opaque, so the exposure change is applied to the whole image.

Expected behavior

Darktable should apply the change only in the masked area.

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

self compiled

darktable version

4.8.1, 8ded880839-dirty

What OS are you using?

Linux

What is the version of your OS?

Debian Bookworm

Describe your system?

I tested this on

Are you using OpenCL GPU in darktable?

No

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

ralfbrown commented 2 months ago

I'm not sure drawn masks have ever been included in styles. Parametric masks do get included, I have several styles which make use of them.

marc-fouquet commented 2 months ago

Well there is a mask-symbol besides the module (in the "mask column") when I create the style and there actually is a (broken) mask when I apply it. This is why I expect that the mask is stored with the style.

ralfbrown commented 2 months ago

Yes, the parametric mask's values are stored in the style. Which, if you've only added drawn shapes, would select all of the pixels. As I said, I don't think drawn shapes have ever been included in styles (that's rather more complicated than the fixed set of parameters).

github-actions[bot] commented 1 week ago

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.