In darktable vignetting correction is automatically applied when lens is supported with Lensfun.
For lenses that are not supported by Lensfun, there is no reasonable way to manually correct vignetting in darktable.
Also with some supported lenses, the vignetting correction is not (yet) integrated or not always optimal and it would be good to have the possibility to manually improve the correction afterwards.
Darktable has a vignetting module, but to make vignettes. The module is not suitable for correction.
Vignetting itself is not always annoying, but for some scenes it is too noticeable. Especially when you increase the contrast of the image, the darker border becomes stronger, which distracts too much from the subject, and unnecessarily increases the dynamic range of the image, which leads to additional processing steps.
For lenses that are not supported by Lensfun, there is no reasonable way to manually correct vignetting in darktable.
Using the exposure module with a drawn mask might be a manual way to correct vignetting.
Using the exposure module with a drawn mask might be a manual way to correct vignetting.
No. The feathering on drawn mask does not work correctly, so the vignette cannot be corrected. There is always a ring (haloing) visible.
Perhaps it could be done in the lens correction module as suggested in #1990
Hi @s7habo the vignetting module has been modified slightly. It's not perfect but what do think?
Thanks @jenshannoschwalm! This is definitely a big improvement.
One suggestion: in case the scale value is very low, fall-off strength should also be in the range 0-200%.
Here is an example:
Original:

With low scale:

The second problem with the module is that the lightening is not done correctly (you can clearly see this by the branches at the bottom left. They lose contrast and become grayish). I suppose this is intentional if you want to have a white vignette.
Maybe the module should have an additional "correction mode" where the exposure is physically correct.
Here is the same example with exposure module. Here I used the circle as a drawn mask:

This is the best I could do. In this case, it works quite well (except at the outermost edges, which are still to darken - you can see that from the waveform).
But masking with a drawn mask is very difficult due to the limitation of feathering (gradient is very difficult to set without halos, which is partly due to the limitation between scale and fall-off, similar to the problem with the vignette module).
One suggestion: in case the scale value is very low, fall-off strength should also be in the range 0-200%.
Agreed, I had this case this morning were I was not able to have a large enough fall-off circle.
@s7habo why not try to do a pr yourself? If you haven't done such before this would be a very good point to start contributing :-) Changing the fall-off is straightforward as in last pr.
Loosing colour/contrast/saturation is another story. We probably have to change the algorithm, not sure whether simply extending the saturation values will help. Have not tested.
@s7habo why not try to do a pr yourself? If you haven't done such before this would be a very good point to start contributing :-) Changing the fall-off is straightforward as in last pr.
In fact, I did not do it because I lack the necessary discipline, concentration and abstract thinking. I find the syntax of programming very complicated and lose the overview very quickly. Some people see it as a positive challenge, but for me it quickly becomes frustrating.
That doesn't mean that I don't want to participate in such a project. But as a developer I would be a pretty bad contributor. :)
We probably have to change the algorithm, not sure whether simply extending the saturation values will help. Have not tested.
As a layman I will say that the "correction mode" of Vignette module should basically do what the exposure module does, with the difference that the exposure correction is only done in the range defined by scale and fall-off strength.
I experimented a bit and found out that the combination of offset, power and slope functions in the color balance module gives very good results:
Exposure only:

Color balance with offset, power and slope:

Observe the waveform. There you can see it well
This issue did not get any activity in the past 30 days and will be closed in 365 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.
I will attempt the PR that @jenshannoschwalm suggested above.
This increases the range available of the fall-off.
Possible improvements in further PRs:
I'm quite interested in this because I use old glass and/or 2x teleconverters quite a lot.
Most helpful comment
I will attempt the PR that @jenshannoschwalm suggested above.
This increases the range available of the fall-off.
Possible improvements in further PRs:
I'm quite interested in this because I use old glass and/or 2x teleconverters quite a lot.