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

Affinity Photo white edges when applying color mask


Recommended Posts

Hi!

I'm trying to change the color of a white object that is masked - a person in a white shirt. I remove the background with a mask. Great. Then I mask the white shirt and change the colour. By default, if I use the same selection for the mask as I used for the original removal of background, I get a white edge showing up. (See image 1 - it's noticable in an image 3000 x 2000 px).

1661005560_Screenshot2022-05-15192920.jpg.afb136bc3cd08e56802722e002013508.jpg

 

 

If I try to add the colour to the white (grey) edge, I end up with a 'black' edge (See image 2 with the mask 'cut out' to show the white underneath, the 'grey' edge that causes the issue, and the 'fix' of more masked color that makes the edge 'black'. 

 

232741931_Screenshot2022-05-15192734.jpg.b8535078402d4742b0b38f42540148c4.jpg

I've tried removing pixels on the other side of the selection, and Any ideas on how to fix this?

Link to comment
Share on other sites

  • Staff

Hi @epenny,

Welcome to the Affinity Forums :)

Are you able to attach a copy of this document here for me so I can investigate further?

Many thanks in advance!

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

Did you use the Pen tool to make a selection or one of the selection tools?

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

@firstdefence Thanks for your reply. I've tried several different ways with the selection brush etc, but not the pen tool. (I used my own cludge technique, then tried following https://www.youtube.com/watch?v=xhpTwl4Tifk then https://www.youtube.com/watch?v=bmNiU_gqiWo then https://www.youtube.com/watch?v=1mDUoYxzijg  and even https://www.youtube.com/watch?v=PDXbdT0ZS8w (which doesn't make the shirt dark enough) but I can't get rid of it.) But if there's a way with the pen tool that might be better, I'm all 👀

 

 

Link to comment
Share on other sites

  • Staff

Thanks for your file provided @epenny!

I can confirm you've unfortunately incidentally encountered a few bugs within the file, firstly there is a known issue causing mask blending to not be correctly applied when the Mask is an 'orphan' layer within a Group (ie not directly applied to a layer), which causes the mask to ignore semi transparency and therefore the mask is slightly smaller here, leaving the grey line around the shirt of your subject.

I was going to suggest duplicating the mask twice, so you had 3 separate mask layers, and applied each of these to your adjustment layers - however I can also see your Curves Adjustment layer has the Underlying Composition Range edited in the Blend Ranges. For the same reason as above, when masking this adjustment, the semi-transparent blend is not correctly applied, meaning the colour of the shirt changes as though you had not set this Underlying Composition Range for the Curves layer.

Both of these issues are already logged with our development team, though for slightly more complex documents - so I'm going to update these logs with your file now, to better demonstrate the bug & this will hopefully help our team to fix this issue asap.

Therefore I've restructured your document to better work with the layer setup you have, please find this file attached.
I duplicated the subject image and nested the mask & adjustment layers directly to this - to workaround both the mask group & layer blending bugs.

I hope this helps :)

affinity_test_f.afphoto

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

If I may, I made one more change to @Dan C’s file….

A) I agree with the reordering. Without it the issues are harder to manage.

B) I added an additional element to each mask. A levels adjustment set to Alpha. This helps, to a limited degree, to push/pull/adjust the mask edge fidelity.
In combination they address both the overall shirt edge and the shirt to pant edge. One alone didn’t do both (at least in my quick attempt, ymmv).
They do, of course also change the edges around the head…. so I just painted those back in directly on the adjustments themselves.

1435768397_shirt1.png.06415e0cd1b154d3475bf65df61b89bd.png211909756_shirt2.png.9b644c26fd0d7e6d9aaf5afa39e0ab1a.png

 

1269780033_pant1.png.ecf37a170bea86c8e636dcb2170d3a61.png 623367514_pant2.png.4d2091b95462d15ba181d905bd6e9aab.png

affinity_test_f_jj.afphoto

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.