epenny Posted May 15, 2022 Posted May 15, 2022 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). 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'. I've tried removing pixels on the other side of the selection, and Any ideas on how to fix this? Quote
RichardMH Posted May 15, 2022 Posted May 15, 2022 Are you using Refine to play with the mask edges? Quote
Dan C Posted May 16, 2022 Posted May 16, 2022 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! Quote
epenny Posted May 16, 2022 Author Posted May 16, 2022 (edited) @RichardMH Thanks for replying. Yes, I tried that. Improved, but couldn't get rid of it completely. @Dan C That would be awesome, thank you. Hopefully it's attached. affinity_test.afphoto Edited May 16, 2022 by epenny Quote
firstdefence Posted May 16, 2022 Posted May 16, 2022 Did you use the Pen tool to make a selection or one of the selection tools? Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions
epenny Posted May 16, 2022 Author Posted May 16, 2022 @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 👀 Quote
Dan C Posted May 17, 2022 Posted May 17, 2022 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 epenny 1 Quote
JimmyJack Posted May 17, 2022 Posted May 17, 2022 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. affinity_test_f_jj.afphoto Dan C and epenny 2 Quote
epenny Posted May 17, 2022 Author Posted May 17, 2022 Hi @Dan C and @JimmyJack, Thank you both so much for looking at this. Those are the tips I needed. I really appreciate your time. Thank you. Dan C 1 Quote
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.