RSS/Atom feed Twitter
Site is read-only, email is disabled

Overlay layer mode

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Overlay layer mode Paul Martin 08 Sep 08:51
  Overlay layer mode Sven Neumann 08 Sep 09:09
   Overlay layer mode Patrick Horgan 17 Sep 04:37
Paul Martin
2009-09-08 08:51:15 UTC (over 15 years ago)

Overlay layer mode

object: Overlay layer mode

I read in the last version of the user's manual the description of the overlay layer mode, at following address :
http://docs.gimp.org/2.6/en/gimp-concepts-layer-modes.html
I only consider the case where the option "Colors / Use GEGL" is checked and thus where Bug #162395 is no longer to consider.
The manual notes I the color component of a pixel in the lower layer, M the corresponding pixel's color component in the upper layer and E the resulting pixel component. For the Overlay mode, the following equation is provided :

E = (M/255) * (I + (2*M/255) * (255-I))
This equation is accompanied by the following descriptive text:
"Overlay mode inverts the pixel value of the lower layer, multiplies it by two times the pixel value of the upper layer, adds that to the original pixel value of the lower layer, divides by 255, and then multiplies by the pixel value of the original lower layer and divides by 255 again."

First problem: except error, textual description does not correspond to the first equation quoted above, but to the second following equation :
E2 = (I/255) * (I + 2*M*(255-I))/255
Second problem: I carried out some tests with GIMP 2.6.7 (with the option "Colors / Use GEGL" checked) and I obtain the following results :

1) for I = 64 and M = 192
the first equation leads to E = 265 the second equation provides E2 = 72 in experiments recorded value is E3 = 88
2) for I = 192 and M = 64
the first equation leads to E = 56 the second equation provides E2 = 24 in experiments recorded value is E3 = 169
If this analysis is confirmed, it thus seems that both the equation quoted in the manual and textual description for Overlay layer mode are incorrect.

I obtain an agreement between the "experimental" values and this third equation below :

E = (I/255) * (I + (2*M/255) * (255-I))

Sven Neumann
2009-09-08 09:09:18 UTC (over 15 years ago)

Overlay layer mode

Hi,

On Tue, 2009-09-08 at 06:51 +0000, Paul Martin wrote:

object: Overlay layer mode

I read in the last version of the user's manual the description of the overlay layer mode, at following address :
http://docs.gimp.org/2.6/en/gimp-concepts-layer-modes.html

I only consider the case where the option "Colors / Use GEGL" is checked and thus where Bug #162395 is no longer to consider.

Note that the manual is in large areas not yet updated for GIMP 2.6.

The GEGL Overlay mode is actually implemented as defined in the upcoming SVG 1.2 spec, see:

http://dev.w3.org/SVG/modules/compositing/master/SVGCompositingPrimer.html

Sven

Patrick Horgan
2009-09-17 04:37:18 UTC (over 15 years ago)

Overlay layer mode

I was reading a book on tattoos, "Tattoo -- From Idea to Ink", which has a final chapter on image manipulation for tattoo artists using Photoshop. The really cool thing is that everything they said to do with Photoshop I already knew how to do with GIMP:)

Patrick