Jump to content
You must now use your email address to sign in [click for more info] ×

Transferring brightness to transparency, Affinity Photo


Recommended Posts

OK, here's an odd one.

I don't know Affinity Photo in much depth.

And I'm hoping to use it for an image sequence that's going into a video.

The image as rendered is a lens flare. I can produce it either with, or without transparency - but as it's an optical effect, if I turn on transparency, the whole thing is 100% transparent.

What I would like is to start with an image with a bright flare on a black background.

And then make the darker areas transparent, keeping the bright areas opaque, (with a soft border), in such a way that I can run it over a folder full of images. 

Is it possible to take the luminance/brightness channel, invert it, and apply it as transparency? Or some other trick?

Clues for the clueless very much appreciated!

Nick

flares-0615.jpg

Link to comment
Share on other sites

You could try:

Layer - Invert - this makes all the white pixels black, and vice versa

Filter - Colours - Erase White Paper - this removes the (now white) background.

Cmd-click (macOS, presumably ctrl-click for Windows) on the layer in the Layers panel to select all the pixels. The 'marching ants' won't appear to select everything, but don't worry: some pixels will be 'half selected' and should get picked up when you...

Select - Save Selection > To File... keep the .afselection file somewhere handy.

Close your original file without saving.

To apply the starburst:

Open another image, then

Select - Load Selection from File - navigate to your .afselection file and plonk it in.

Set your foreground colour to white, then

Layer - New Fill Layer.

Right-click on the Fill Layer and choose Rasterise and Trim to create a Pixel layer containing the starburst above the background layer of the image. Deselect (cmd-D on macOS). Select the Move tool, adjust the size and position of the starburst and play with the layer's opacity and with blend modes to modify the effect.

One possible downside is that the starburst will be the same size (in pixels) as the original. So if you place it larger images, it will be proportionally smaller and enlarging it drastically will tend to pixellate the edges.

583288118_Screenshot2022-04-22at19_48_30.png.646af6809e6eda008b018f32e9539632.png

You might also speed things up by saving the starburst layer as an Asset.

Affinity Photo 2.0.3,  Affinity Designer 2.0.3, Affinity Publisher 2.0.3, Mac OSX 13, 2018 MacBook Pro 15" Intel.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.