Disparities in Subtract Blend Math and Final Result

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 

Not sure whether to post this on GIMP or GEGL list. So, kindly suggest if
this question doesn't belong here.

I have been trying to implement GIMP blend modes, Colour Dodge and Subtract,
in Python taking the GEGL implementations as the reference. The Dodge has
been implemented and the resultant images are matching with the ones
exported from GIMP. However, the results for Subtract, despite its seemingly
straightforward math and implementation, are starkly different from the ones
obtained using GIMP.

Subtract  (as per documentation): max(Background - Foreground, 0). It seems
Subtract doesn't use alpha information for blending.

I intend to apply Subtract after couple of Dodge operations. Since, I saw
disparities in the results, tried to test Subtract independently with BG
image. 
So, tried with two plain RGB images (alpha set to 1) - BG: (205,36,50), FG:
(125,38,85). And the resultant colour, Blended: (170, 234, 0) which doesn't
follow the math above.
Any idea if the underlying math is different than the aforementioned one? Or
is this the composite generation matter handled by GIMP? The colors were
normalized between [0, 1] prior to blending.

Thanks,
Nikunj

_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list



[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux