xuvvy Posted December 10, 2020 Share Posted December 10, 2020 Hello, what would be the best way to remove alpha channel pixels from a layer or make them fully opaque? In case I'm not making sense, here's an example: I add some red background and make a stroke with the brush over it with a green color, there's going to be red pixels of the background, green pixels of the brush and pixels that are green with alpha channel - how could I remove those with alpha channel or make them fully opaque? Both GIMP and Photoshop have ways of doing this for whole document, layer or selection, I'm curious how one would do this in Affinity Photo, or even Affinity Designer. I could provide an example if needed. Thanks! Quote Link to comment Share on other sites More sharing options...
telemax Posted December 10, 2020 Share Posted December 10, 2020 Select your stroke brush layer, Channels > Pixel Alpha > Fill Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
xuvvy Posted December 10, 2020 Author Share Posted December 10, 2020 (edited) That would work in GIMP or Photoshop but the end result in Affinity Photo is, well, this: and I cannot figure out why. I would also prefer if I could find a way to maybe remove those alpha pixels rather than fill them with an opaque color, but either can work, I guess. EDIT: Example in GIMP below. Edited December 10, 2020 by xuvvy Added GIMP example Quote Link to comment Share on other sites More sharing options...
telemax Posted December 10, 2020 Share Posted December 10, 2020 Alpha_to_Mask.mp4 xuvvy 1 Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
xuvvy Posted December 10, 2020 Author Share Posted December 10, 2020 Ah, that makes a lot of sense, didn't think of that. Thanks! Quote Link to comment Share on other sites More sharing options...
Dazmondo77 Posted December 10, 2020 Share Posted December 10, 2020 I always find using blend ranges is really quick and easy: Screen_Grab_2020-12-10_at_15_13_14.mov Quote Mac Pro Cheese-grater (Early 2009) 2.93 GHz 6-Core Intel Xeon 48 GB 1333 MHz DDR3 ECC Ram, Sapphire Pulse Radeon RX 580 8GB GDDR5, Ugee 19" Graphics Tablet Monitor Triple boot via OCLP 1.4.3 - Mac OS Monterey 12.7.3, Sonoma 14.1.1 and Mojave 10.14.6 Affinity Publisher, Designer and Photo 1.10.5 - 2.4.0 Betas 2.5.0(2430) www.bingercreative.co.uk Link to comment Share on other sites More sharing options...
xuvvy Posted December 10, 2020 Author Share Posted December 10, 2020 (edited) Now that I've tried it a few times, both techniques almost work. The issue is that alpha-channel pixels still persist, while I would like all alpha channel pixels to either be removed or turned fully opaque and I haven't yet found a good way of doing so in Affinity Photo. I've found the 'solution', though, it's at the bottom. In your example as well, @telemax, most transparent pixels are removed, but not all. There is no denying that the latter is cleaner, less alpha pixels, but there's still alpha pixels for some reason and I cannot figure out why. Here is zoomed in: The solution to this, I found, is to just use the fill tool on the pixel layer with the mask layer being nested. If anyone has any simpler, better or cleaner solution, I'm all ears! Edited December 10, 2020 by xuvvy telemax 1 Quote Link to comment Share on other sites More sharing options...
telemax Posted December 10, 2020 Share Posted December 10, 2020 Maybe it's a little easier: Threshold.mp4 xuvvy 1 Quote Non-destructive Mask https://forum.affinity.serif.com/index.php?/topic/150439-non-destructive-mask/Image layer & Pixel layer https://forum.affinity.serif.com/index.php?/topic/146720-image-layer-and-pixel-layer/Brushes | Stars https://forum.affinity.serif.com/index.php?/topic/135202-brushes-stars/ Link to comment Share on other sites More sharing options...
lepr Posted December 10, 2020 Share Posted December 10, 2020 Here's a collection of three macros to simplify your workflow: Alpha utilities.afmacros With the target Pixel object selected, run either "Clear partial alpha" or "Fill partial alpha". ("Fill alpha of selected pixels" is required by "Fill partial alpha", so do not delete it.) xuvvy 1 Quote Link to comment Share on other sites More sharing options...
Dazmondo77 Posted December 11, 2020 Share Posted December 11, 2020 15 hours ago, xuvvy said: The issue is that alpha-channel pixels still persist This is really easy to do using blend ranges: Screen_Grab_2020-12-11_at_08_30_11.mov xuvvy 1 Quote Mac Pro Cheese-grater (Early 2009) 2.93 GHz 6-Core Intel Xeon 48 GB 1333 MHz DDR3 ECC Ram, Sapphire Pulse Radeon RX 580 8GB GDDR5, Ugee 19" Graphics Tablet Monitor Triple boot via OCLP 1.4.3 - Mac OS Monterey 12.7.3, Sonoma 14.1.1 and Mojave 10.14.6 Affinity Publisher, Designer and Photo 1.10.5 - 2.4.0 Betas 2.5.0(2430) www.bingercreative.co.uk Link to comment Share on other sites More sharing options...
Recommended Posts
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.