I have found a strange behaviour with one of my images.
This is the image cut from the screen:
It is processed using the new pipe and filmic and I have applied some color balance modules (tree copies: one to give some light to the child, one for color transformation the green/blue tone division preset and one to produce the vignette effect).
In the display all seems OK.
But when I export the image to jpeg in sRGB I get this result:
In 3.1 there were some attempts to reduce the size of the preview image. It seems the vignette mask was calculated on an older code base an now doesnât properly scale to the whole image.
That can happen when using development versions.
I was previously using the official version of darktable, from the official web page, and I have recently upgraded to 3.2.1.
(I am using windows by the way).
The photo was imported when the 3.2.1 version was already installed.
There is no issue with the photo in the screen, neither in the lightable nor the darkroom.
It displays correctly.
The problem comes when I export the photo to jpeg, jpeg 2000 or tiff.
In the exported version there are these kind of artifacts.
Other photos do not have this problem (and I am using similar color balance adjustments).
What modules are used on this picture ? Try deactivating on by one. Also may be an Intel OpenCL issue (again!) so if activated please deactivate it and retest.
As I have explained, the issue is produced when I activate the colour balance module.
I have used it three time to produce different effects.
In the screen everything is OK, but not when exported.
If I deactivate the color balance module and export the image, everything is OK.
It is not an Intel OpenCL issue, as long as I know the 3.2.1 official version does not use hardware acceleration in intel HD boards as they are still blacklisted.
I have no harware acceleration option in the settings.
In other pictures with similar adjustements and use of the color balance module there is no issue.
I suspect the problem is not the color balance module itshelf, but some bug or effect that only appears in pictures that have some channel burned or close to it.
The strange thing about it is that it only appears during export.
I can do some test or provide more info if required.
This is so strange. I can reproduce there sorts of artifacts on some of my own photos, with just exposure, one colour balance instance and filmic. I set a parametic mask on the colour balance, with blend mode 80% or so (canât reproduce with 100% opacity), move the triables on top of the input sliders towards the middle a bit, lower the mask contrast, then fiddle with the feathering slider, the artifacts come and go as I move the feathering slider. If I turn off filmic, I canât seem to get the artifacts to appear, nor if the blend mode opacity is at 100%. Itâs quite bizarre, thereâs something interesting going on thereâŚ
It seems color balance creates NaN in your settings, because you use a negative offset in 2 instances. Then, the power doesnât return something valid, because y^a = \oslash, \forall \{ x > 0, a < 1 \}.
If you set either the powers or the offsets to 0, it seems to make the weird pixels disappear.
Then, filmic makes it worse because the highlights reconstruction fetches these pixel and propagate the NaN around.
What I donât understand is the power, in color balance, clips negatives, so this should not happen.
In my case I am not using VNG4, but PPG to do the demosaicing.
I donât understand well the answer of @anon41087856.
Do yo mean there are wrong settings in the parameters that I selected to develope the raw?
Or should the system take negative values into account and avoid them?
Is it wrong to use negative values to adjust black level in exposure modules?
If it is, the system should not let you introduce them.
I use that to adjust the black in a picture which blacks were to high.
May be it can be done in filmic too, but I understood that you should adjust exposition an gray level prior to filmic, in exposure and not in filmic.
I will let experts and developers to analyze the problem and if there is some bug, as I donât understand well how the image is processed.
What is very strange for me is that most of the time you can see correctly the image in the screen, and the problem only appears in export.
The calculations and process are supposed to be the same for both