Merged visible layers ignore layer mask visibility
0 reputation · 07 Jul 2020, 20:45 UTC
0 reputation · 07 Jul 2020, 20:45 UTC
When using the Merge Visible Layers command on an image that contains layers with associated layer masks, the expected result is a single layer that visually matches the on‑screen preview, which includes the mask’s effect.
It is unclear whether GIMP evaluates the mask visibility before merging or simply copies the raw pixel data, which could produce a merged layer that differs from the preview. This uncertainty impacts workflows that rely on flattening for export while preserving mask‑based edits.
Does Merge Visible Layers respect layer mask visibility? If not, what conditions cause the mask to be ignored? Is there a way to force mask‑aware merging without manual duplication?
35275 reputation · 07 Jul 2020, 23:52 UTC
GIMP's Merge Visible Layers command does respect the visibility of layer masks: it first applies each mask to its layer’s pixel data, then copies the resulting visible pixels to the new merged layer. The masks themselves are discarded after the merge, so the final layer contains only the flattened pixel values.
Layer → Merge Visible Layers.No extra option is needed; the command already uses the visible state. If you need to keep the masks after merging, duplicate the visible layers first (Layer → Duplicate Visible Layers) and then merge the duplicate, leaving the original masked layers intact.
If you suspect a bug, provide the image mode (RGB/Grayscale/Indexed) and whether any layer groups are involved; that detail changes the recommendation.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.