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

Composite mode options

This discussion is connected to the gimp-docs-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.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Composite mode options Julien Hardelin 09 May 13:17
  Composite mode options Ell via gimp-docs-list 10 May 13:06
   Composite mode options Ell via gimp-docs-list 10 May 13:20
   Composite mode options Julien Hardelin 10 May 18:50
Julien Hardelin
2018-05-09 13:17:49 UTC (almost 6 years ago)

Composite mode options

Hi,

I don't understand options in Composite mode in Edit Layer Attributes and New Layer : Auto, Union, Clip to backdrop, Clip to layer, Intersection.

What do they do?

What are they useful for?

Julien

Ell via gimp-docs-list
2018-05-10 13:06:48 UTC (almost 6 years ago)

Composite mode options

On Wed, 9 May 2018 15:17:49 +0200 Julien Hardelin wrote:

Hi,

I don't understand options in Composite mode in Edit Layer Attributes and New Layer : Auto, Union, Clip to backdrop, Clip to layer, Intersection.

What do they do?

What are they useful for?

While this isn't 100% accurate, roughly speaking, the layer's mode (sometimes referred to as its "blend mode": Normal, Multiply, etc.) determines how the *color values* of the layer and its backdrop are combined, while the layer's composite mode determines how the *alpha values* of the layer and its backdrop are combined. (The layer's backdrop is the content against which the layer is composited; namely, it's the combination of the layers below it.)

There are two regions of interest when compositing the layer against its backdrop: the opaque region of the backdrop, and the opaque region of the layer. The layer's blend mode determines how to combine the colors of the *intersection* of these two regions: i.e., the common opaque region of both the backdrop and the layer (pixels belonging to only one of these regions don't need to be combined with anything, and retain their original color.) The layer's composite mode determines which part of these regions to keep, and which to discard:

- "Union" keeps the opaque regions of both the layer and its backdrop, i.e., their union [1].

- "Clip to Backdrop" keeps only the opaque region of the backdrop (this includes the common opaque region to both the backdrop and the layer, i.e., their intersection) [2].

- "Clip to Layer" keeps only the opaque region of the layer (this includes the common opaque region to both the backdrop and the layer, i.e., their intersection) [3].

- "Intersection" keeps only the common opaque region to both the backdrop and the layer, i.e., their intersection [4].

The images referenced above show the composition of two layers -- the bottom layer containing a red feathered circle, and the top layer containing a green feathered circle -- using "Addition" mode, and different composite modes (applied to the top layer).

[1] https://i.imgur.com/HenCiQC.png [2] https://i.imgur.com/7wzwMJa.png
[3] https://i.imgur.com/CNj1tw9.png
[4] https://i.imgur.com/rzft0bk.png

-- Ell

Ell via gimp-docs-list
2018-05-10 13:20:23 UTC (almost 6 years ago)

Composite mode options

On Thu, 10 May 2018 09:06:48 -0400 Ell via gimp-docs-list wrote:

On Wed, 9 May 2018 15:17:49 +0200 Julien Hardelin wrote:

Hi,

I don't understand options in Composite mode in Edit Layer Attributes and New Layer : Auto, Union, Clip to backdrop, Clip to layer, Intersection.

What do they do?

What are they useful for?

[...]

"Auto" mode, which I forgot to mention, is not a separate composite mode, but rather corresponds to one of the other composite modes, depending on the layer's blend mode: for "Normal", "Dissolve", and "Merge", it corresponds to "Union", and for the other modes (that support different composite modes) it corresponds to "Clip to Backdrop".

-- Ell

Julien Hardelin
2018-05-10 18:50:53 UTC (almost 6 years ago)

Composite mode options

Thank you, Ell, for your very clear explanations.

Julien