Go Back   RetouchPRO > Technique > Photo Restoration
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read

Photo Restoration Repairing damaged photos

How to replace a black background?

Thread Tools
Old 01-15-2006, 04:09 PM
buso23's Avatar
buso23 buso23 is offline
Join Date: Jul 2005
Posts: 82
How to replace a black background?


I am aware of couple of techniques of replacing a background and I think that the best one is to use the pen tool, but it's time consuming. I have some photos shot against black background and I would like to change it into white. No matter how hard I try there's always some bleeding from the black background and it is easily detectable in the new background. So I'd like to know if there's an easier way to replace a black background with a white one. I'd really hate to use the pen tool. Thanks in advance, and regards from Macedonia.

Here's a photo shot against black background:
Reply With Quote top
Old 01-15-2006, 05:04 PM
Chance_1 Chance_1 is offline
Join Date: Nov 2005
Posts: 94
Check out this tutorial, on advanced masking to delete backgrounds :

Reply With Quote top
Old 01-15-2006, 06:48 PM
OnlinePhotoDoc OnlinePhotoDoc is offline
Junior Member
Join Date: Dec 2005
Location: Portland, Oregon
Posts: 5

For a background so contrasted from the foreground like this, using the Threshold tool usually works well for me. Duplicate the image, apply threshold to the value chanel, and adjust until the foreground looks completely white (completely selected). Change the layer to a layer mask and clean up the mask if necessary with the paintbrush.
Reply With Quote top
Old 01-16-2006, 12:22 AM
Mig Mig is offline
Senior Member
Join Date: Aug 2001
Location: SF
Posts: 265
By the looks of the picture of the flower from the site, I think what you're getting at is a problem with there being a dark or black fringe and you want to get rid of that. For the flower example, you first have to select that, and you can use whatever method you know how how at this moment - it doesn't have to be the pen tool. Then copy/paste the selected flower to a new layer and we'll call this 'flower layer', and then add an empty layer below it and fill it with white (or whatever light bg you're using). You'll see the problems on the fringe of the flower immediately.
Return to the 'flower layer' and Ctrl+click this layer to select its contents, then go to taskbar and to Select>Modify>Contract and enter something like 1 pixel, or perhaps 2, which will reduce the selection size of the flower by one or two pixels. Then there's several things you can do from here - but what I'd suggest is feathering the selection by 1 pixel, then adding a layer mask and see what happens - and then play around with the layer mask. If you're not familiar with layer masks, just invert the selection and carefully erase the black pixels.

Reply With Quote top
Old 01-16-2006, 03:16 AM
Flora's Avatar
Flora Flora is offline
Senior Member
Join Date: Mar 2002
Location: Milan, Italy
Posts: 2,325
Blog Entries: 3

... and Welcome to RP to buso23 and OnlinePhotoDoc!

Great tips here!!

A picture with a plain coloured background and presenting such a high contrast between background and subject is, in my opinion, one of the easiest for a mask/selection ....

Working in RGB Mode, I usually duplicate the Channel with the highest contrast between background and subject (in most cases either Red or Blue Channel) but for this picture I chose the Green channel...
I run the Levels on the duplicate Channel to strongly increase contrast, refine the mask and invert it whenever necessary .... I described this technique step-by-step in this Tutorial.

Since writing the Tutorial, I read about an additional step for refining the mask and that is:

after running the Levels on your duplicate channel, select a semisoft edge brush (Opacity 30-70%), set the brush to Overlay first and Normal later, and carefully paint white on the grey areas that are to be lightened, and black on the grey areas that are to be darkened...

After this you can either follow Mig's excellent tip for removing the 'fringe around the edges (I usually also use a very light feathering for that), or you can follow Doug's also excellent 'Levels on the mask' tip described in my Tutorial...

As the daisy's petals are white, I decided against a white background, but rather went for a coloured one, but i could also post a version with a white background ...

Attachment 2 show the mask obtained with this procedure..

Hope this helps ...
Attached Images
File Type: jpg F_3391,1108727637,1.jpg (94.6 KB, 38 views)
File Type: jpg SNAP-0068.jpg (21.5 KB, 21 views)
Reply With Quote top
Old 01-16-2006, 03:27 AM
aztek1020 aztek1020 is offline
Junior Member
Join Date: Jan 2006
Posts: 8

you can use the magic eraser or extract to clear the background in photoshop.
Reply With Quote top
Old 01-16-2006, 08:02 AM
Gary Richardson's Avatar
Gary Richardson Gary Richardson is offline
Senior Member
Join Date: Mar 2004
Location: Yorkshire, England
Posts: 2,717
For such a high contrast subject, you are really swamped with choices.

Try the extraction tool, this took about 1 min to do. A little time spent cleaning up would improve it.
Attached Images
File Type: jpg 3391,1108727637,1 copy.jpg (57.7 KB, 26 views)
File Type: jpg Layers.jpg (13.9 KB, 8 views)
Reply With Quote top

  RetouchPRO > Technique > Photo Restoration

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial 05: Converting a Color Image to Black and White grayscale BW DannyRaphael Photo-Art 101 17 05-22-2011 04:55 PM
help with german Photoshop commands please pure Photoshop Help 9 06-21-2010 02:33 PM
replace background norbertsf Photo Compositing 3 05-02-2007 02:15 PM
Replace Background? Remove Texture? tammylj Image Help 7 03-15-2007 08:41 AM
black background & black hair sunshine! Image Help 3 09-03-2006 06:23 PM

All times are GMT -6. The time now is 02:58 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved