I'm using GIMP, and I have a smaller image in the second, above layer. I don't see a way / "Mode" that allows me to use this image to "cut a hole" in the image in the lower layer (matching the shape of the image above).
How do I do this? Thanks.
If the image above is on transparent background:
In Gimp 2.10, there is an Erase
layer blend mode that essentially makes the layer act as a cookie cutter for the layers below it. So if you want to cut a layer to a shape:
Erase
blend modeIf you want to keep the shape and cut the rest, there is no inverse equivalent of the Erase
blend mode, but you use a subgroup to invert the opacity of the shape:
Erase
mode at the top of the subgroupShape
layer in the solution above (so, this subgroup should also be in Erase
mode)The benefits of this technique over the 2.8 one is that changes in the shape layer have an immediate effect on the image without having to repeat operations. In particular, instead of having one shape layer in the group of subgroup, you can have several and toggle their visibility.
Even simpler solution: move the "shape" layer under the layer to cut, and set the Composite Mode
of the layer to cut to Clip to backdrop
. Put the two layers in their own group so that the "backdrop" is the group contents, and not the whole image. The previous solution may still have its uses in some cases.