How to export the projection #112
-
I'm so new to Gimp that I'm not even sure I'm using the right terms. I have a bunch of layers (photos) in a group and the group has a circle mask. I want to export the layers with this mask, so the result is a square image with only a circle of content. I think this is called 'projection'. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
I tried to apply a procedure and got an error:
I tried to use a layer outside of the group, same results. |
Beta Was this translation helpful? Give feedback.
-
I found a solution, although it might be somewhat inconvenient as it involves multiple steps. I created a Python script that applies a layer mask from a layer specified by its name to the current layer.
If you do not wish to keep the masks, you can simply undo the change. The masks will not be created/overridden if a layer already has one. |
Beta Was this translation helpful? Give feedback.
-
If you use a Unix-based system, make sure the .py file is executable. You should be able to see a new menu entry under Layer -> Apply mask from layer. Also maybe check if the |
Beta Was this translation helpful? Give feedback.
-
I created a layer called Mask and added the mask to it (it's icon is a black rectangle with a white circle). Didn't apply the mask. The batch operation iterates over all layers and applies a mask, but apparently it's a 'do nothing' as it is all white (white rectangle in the icon). |
Beta Was this translation helpful? Give feedback.
When I cleared the selection (before calling the script), the mask was copied with the black background and the white circle (which I assume is the expected result). The script assumes that the selection is empty, which I did not anticipate. If you need to preserve the selection, you can create a new channel from selection (Select -> Save to Channel).