Layer mask is rendered incorrectly after scaling
GIMP version: 2.10.8
Operating System: Linux/Manjaro DE: KDE/Plasma5
Package: Arch/Manjaro repository
Description of the bug
When scaling a layer with a mask, the mask is not scaled correctly. This also happens when scaling layer groups — masks of all layers inside of groups are rendered offset/incorrect.
Layer at original size:
Preview of the layer still shows OK:
After confirming resize, though, the layer mask is suddenly misaligned with the layer:
However, when attempting to resize the mask (after the layer has been resized), the preview will show that layer mask is properly aligned with the layer:
If the layer is scaled down too much, the mask goes all-transparent:
Is the bug reproducible?
I even reproduced it on two machines (both Manjaro/KDE), one with scaling factor set to 1.3 (via KDE display settings), one where scaling remains untouched at default value.
- Add a mask to a layer
- Pick a layer with a mask and resize it (possibly moving the layer a bit in the process)
Layer mask gets downscaled with the layer, layer mask is aligned with the new layer as it was, GIMP renders layer mask correctly.
Layer mask doesn't render correctly after resize.