Alex_M Posted September 18, 2018 Share Posted September 18, 2018 Is there a way in Affinity Photo to premultiply the alpha against black color? I'm doing some renderings and I'm getting black halos around my objects. In Photoshop there's "Remove Black Matte" and in After Effects there's "Premultiplied - Matted With Color:" What about Affinity Photo? Quote Affinity Photo 2.4.2 for Windows ◾ OS: Windows 10 Pro x64 ver. 22H2 ◾ CPU: AMD Ryzen 7950X 16-core ◾ RAM: 64 GB DDR5-6400 ◾ GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98 ◾ NVMe SSD Samsung 980 Pro 1 TB ◾ Monitors: 2x Eizo ColorEdge CS2420 24" Link to comment Share on other sites More sharing options...
Staff Dan C Posted September 19, 2018 Staff Share Posted September 19, 2018 Hi Alex_M Unfortunately there's no 'remove black matte' option in Affinity currently, although it has been previously requested here. I can see that you have also previously made a post of a similar nature here, where my colleague provided an answer for Defringing, if you could provide an example then we may be able to help further! Quote Please note - I am currently out of the office for a short while whilst recovering from surgery (nothing serious!), therefore will not be available on the Forums during this time. Should you require a response from the team in a thread I have previously replied in - please Create a New Thread and our team will be sure to reply as soon as possible. Many thanks! Link to comment Share on other sites More sharing options...
Alex_M Posted September 27, 2018 Author Share Posted September 27, 2018 Ok, please see the attached image. You will notice the black outline around the objects on the faucet to the left. It should look like the one to the right - no black outline. Do you have any ideas on how to get rid of the outline? Quote Affinity Photo 2.4.2 for Windows ◾ OS: Windows 10 Pro x64 ver. 22H2 ◾ CPU: AMD Ryzen 7950X 16-core ◾ RAM: 64 GB DDR5-6400 ◾ GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98 ◾ NVMe SSD Samsung 980 Pro 1 TB ◾ Monitors: 2x Eizo ColorEdge CS2420 24" Link to comment Share on other sites More sharing options...
Staff Dan C Posted September 28, 2018 Staff Share Posted September 28, 2018 I see, thanks for that. Any chance you could provide the source image, so I can try playing with it to see if I can help remove the matte? Quote Please note - I am currently out of the office for a short while whilst recovering from surgery (nothing serious!), therefore will not be available on the Forums during this time. Should you require a response from the team in a thread I have previously replied in - please Create a New Thread and our team will be sure to reply as soon as possible. Many thanks! Link to comment Share on other sites More sharing options...
Alex_M Posted September 28, 2018 Author Share Posted September 28, 2018 Sure, please see attached. EDIT: I Think the problem stems from the way the alpha is saved. The PNG format always saves alpha premultiplied so rendering against black background produces halos around edges of objects. In Photoshop the halo can be removed with Matting > Remove Black Matte and in After Effects you just tell it weather the alpha is premultiplied or straight. How do I do that with Photo? TGA format allows choosing to save the alpha as unpremultiplied (straight). Then I don't get the black halos in neither Photoshop nor Photo. faucet.zip Quote Affinity Photo 2.4.2 for Windows ◾ OS: Windows 10 Pro x64 ver. 22H2 ◾ CPU: AMD Ryzen 7950X 16-core ◾ RAM: 64 GB DDR5-6400 ◾ GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98 ◾ NVMe SSD Samsung 980 Pro 1 TB ◾ Monitors: 2x Eizo ColorEdge CS2420 24" Link to comment Share on other sites More sharing options...
Staff Dan C Posted October 1, 2018 Staff Share Posted October 1, 2018 Thanks for that Alex I've played around with the files and the closest I can get is changing the Gamma settings under the blend options for the image, see below. As you can see, this makes a slight difference to the black haloing around the object. Another option, if possible to your workflow, could be to use the EXR format as a straight alpha option is available in the export options of Affinity for this format. Alex_M 1 Quote Please note - I am currently out of the office for a short while whilst recovering from surgery (nothing serious!), therefore will not be available on the Forums during this time. Should you require a response from the team in a thread I have previously replied in - please Create a New Thread and our team will be sure to reply as soon as possible. Many thanks! Link to comment Share on other sites More sharing options...
lepr Posted October 1, 2018 Share Posted October 1, 2018 . Alex_M, Dan C and carl123 3 Quote Link to comment Share on other sites More sharing options...
Alex_M Posted October 2, 2018 Author Share Posted October 2, 2018 Thanks for these examples! The Apply Image filter actually seems to work best. I had to change the Opacity parameter at the bottom to 50% to make it look good otherwise I get a white outline. Quote Affinity Photo 2.4.2 for Windows ◾ OS: Windows 10 Pro x64 ver. 22H2 ◾ CPU: AMD Ryzen 7950X 16-core ◾ RAM: 64 GB DDR5-6400 ◾ GPU: MSI GeForce RTX 3090 Suprim X 24GB / driver 526.98 ◾ NVMe SSD Samsung 980 Pro 1 TB ◾ Monitors: 2x Eizo ColorEdge CS2420 24" Link to comment Share on other sites More sharing options...
lepr Posted October 3, 2018 Share Posted October 3, 2018 . Quote 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.