# How to circularly fade an image to alpha in compositing?

I'm trying to circularly fade an image into transparency in the blender compositor.

My approach was to use an Ellipse Mask in combination with the Set Alpha node, so that the picture becomes more and more transparent towards the edges.

Output of the Set Alpha Node:

Unfortunately, this doesn't work as the center turns black where it should be transparent. (The original image has a transparent background.)

What am I doing wrong?

This behavior occured in Blender 2.91.2 and 2.83.5 (on Linux).

In the example used, I try to get rid of the shadow that protrudes over the edge.

The effect I like to achieve would look something like this:

EDIT:

Unfortunately, if the Ellipse Mask is inverted the outer area turns black (should be transparent).

Output of the Set Alpha Node:

• Sorry if I'm misunderstanding, but couldn't you just put an Invert node between the glare and the Set Alpha? Feb 21, 2021 at 1:59
• @ChristopherBennett Thanks for your suggestion. I've reworked the question to address it. Feb 21, 2021 at 13:07

I used the Separate RGBA node to extract the current Alpha value, and a Math node to multiply the two values: