darxide Posted July 30, 2014 Share Posted July 30, 2014 (edited) I have two image files. I have a file with an image overlayed on a background. I have that exact background as a second image with no overlay. I no longer have the image overlay as it's own image and I need it back. Is there a way to mask the background image onto the overlayed image to end up with just the overlay itself and no background? It's too complex an overlay to simply cut out by hand and still look the way I want it to. Thanks. Edit: This here is exactly what I'm looking for, is there something similar for Paint.NET? I'd hate to have to download GIMP just to do this one thing. Edited July 31, 2014 by darxide Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted July 31, 2014 Share Posted July 31, 2014 Layer the two images one above the other on a single canvas. Full image below and background image above. Set the upper layer's blend mode to XOR. This should black out all pixels which exactly match the lower layer. Select the black region on the upper layer with the magic Wand and a very low tolerance. You're trying to get just the background elements - not the "object" Activate the full image layer & press delete. Hide the upper layer. What just happened here? We used XOR to find the matching pixels in both images. We selected these and removed them from the full image. This should have left us with the net different pixels between the two images. 1 Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
darxide Posted July 31, 2014 Author Share Posted July 31, 2014 There must have been some quality differences when the two were saved because the background is slightly different. Just enough that they don't match for the XOR but you can't tell by looking unless you zoom in 500% and stare at a small cluster of pixels. When I flip between the layers I notice the tiniest differences in the hues of some of the pixels. Oh, well. Thanks for the info, I'm sure it will come in handy at some point now that I know how to do it. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted July 31, 2014 Share Posted July 31, 2014 You might be able to capture some of the stray pixels by increasing the Tolerance of the Magic Wand. If the background is different then trying to use it as a mask is doomed I'm afraid. Perhaps this might help http://forums.getpaint.net/index.php?/topic/13796-cutting-out-images/ Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker 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.