How to apply Gimp layer mask with Gegl?

I’m working on a Gimp2.99 plugin, that among other things, needs to apply a mask to its layer. My approach is to convert the masks black to alpha (gegl:color-to-alpha operation), and then apply this information to the actual layer (gegl:opacity operation). But instead of a nice, soft transition, the result is a sharp edge.

Before I found out about this forum, I already pointed out the problem on stackoverflow quite thoroughly. So I hope it’s ok, to just refer to my question there this time.

https://stackoverflow.com/questions/78850216/how-to-apply-gimp3-layer-mask-with-gegl-0-4-or-how-to-use-geglopacity

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.