1

I have hundreds of layers on an image. I would like to add a layer especially dedicated on transparency - so that I can add transparency to the areas of the image, without modifying the other layers. How could I do that without flattening the other layers ?

Here is the beautifully drawn example :

I have multiple layers enter image description here

I would like to add one layer on the top to determine what areas are transparent (the white part should be transparent)

enter image description here

I cannot merge the other layers, and adding the same layer mask to all the layers is not possible.

  • 1
    Mmm. Your question seems similar to this one. It seems possible, but applying a mask for each layer. Here there is a simple workaround. – Paolo Gibellini Apr 14 '16 at 14:59
1

GIMP Layers transparency don't affect sibling layers beneath it - those would just show through. This idea, however, would be feasible by putting all layers inside a group - that would contain the whole image, and then setting up a mask to that group layer. The bad news is that masks are not implemented in group layers, so one simply can't do that.

So, the workaround is to duplicate the image (image->duplicate), flatten the resulting image (Image->Merge visible layers...) and adding a layer mask to the resulting layer. This mask could be pasted from a reference mask. Unfortunately, this workaround is "static": it allows you to render a final image with the desired masking, but not editing your image with the mask applied.

update: On the development version, being able to have a layer mask to a layer group, which would resolve this problem, is counted as main blocker for the release of GIMP 2.10, due this year (2017). Expect this to be implemented on the development version anytime soon.

1

There is a way to do this using a layer blending mode and group. It's not obvious.

Put your layers inside a group. And set the blending mode to "Hard Light".

Apply the layer mask to your background.

Screenshot of Layers

  • This is a new trick, never seen nor thought it before ! – user287001 May 12 '17 at 10:38
  • Yeah, it might not do for everything however, layer blending modes can alter colours. Still it might be useful for someone out there. – Billy Kerr May 12 '17 at 10:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.