Tell me more ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

I have a passport picture in which the background is light brown. I need to change that background to white. Is there anyway I can do that using Inkscape or any free tools?

Here is the picture:

Passport image

If anyone can change the background to white for me than that would be great!

share|improve this question
1  
It sounds like you have a raster image (JPEG, PNG, TIFF, etc.) that you want to edit, in which case you probably need a raster graphics editor (like GIMP or Photoshop), not a vector graphics editor like Inkscape. Inkscape does support some simple raster effects and filters, but that's not what it's really designed for. Also, it would help to see (a small version of) the actual picture, if that's possible. – Ilmari Karonen Jan 30 '12 at 16:03
picture link added in the original question. – azamsharp Jan 30 '12 at 16:26
Hmm, looks like it might be only/mostly a white balance issue. Let me see what I can do with it. – Ilmari Karonen Jan 30 '12 at 16:37
Thanks let me know if you solve the problem and change the background to white. – azamsharp Jan 30 '12 at 17:16
@azamsharp That yfrog link times out. Can you provide a better link or host the image using the built-in mechanism? – Farray Jan 30 '12 at 17:59
show 2 more comments

1 Answer

up vote 1 down vote accepted

Yes, this can be possible, although Inkscape may not be the optimal tool for it. What you probably want for a job like this is a raster graphics editor like GIMP or Photoshop, not a vector graphics editor like Inkscape.

Without seeing the actual picture, though, it's hard to say just what could be done with it and how. Still, just to show what is possible, here's a picture I once cleaned up for Wikipedia using GIMP:

  House_mouse.jpg   Mouse_white_background.jpg

The original is on the left, the edited version on the right. Of course, neither version has particularly high resolution, but the result still worked fine for its intended use, which was as a tiny 30 × 20 px thumbnail in a boilerplate notice. (Since then, I've seen that same mouse show up in some surprising places, which just goes to show that there's always demand for simple public domain clip art, even of lab mice.)


Edit: OK, after looking at the original image, it seems to me that this is mostly a white balance issue. Assuming that the wall behind the subject is actually supposed to be gray, we can easily fix the issue using the GIMP white balance plugin:

  1. Use the Color Picker Tool to select the color of the wall as the foreground color. (Since we have a nice flat expanse of wall to select from, I suggets using "Sample average" and a fairly large radius for best results.)

  2. Use the white balance tool (Filters → Colors → White balance) in "Make foreground gray" mode.

(You can also do this just by playing with the sliders in Colors → Color Balance..., but the plugin makes it a lot easier.)

These steps will correct the color cast, but the resulting image is still kind of dark and grayish. So the next step is to brighten it using the Colors → Levels... (or Curves..., which is more versatile but also more complex) tool. This will take some trial and error to get the best results, but basically you first set the black and white points so that the histogram just fits between them, and then adjust the midpoint slider (or a control point in the middle, if using curves) to get a nice contrast. This is what I got after playing with curves a bit:

  Image after white balance correction and curves adjustment

If the result still looks too "bland" or gray, you might also want to push up the color saturation a little (using Colors → Hue-Saturation...). Be careful, though, it's easy to overdo it.

Ps. You'll notice that the wall in the background still loks gray, not white. If you really wanted it to be white, you'd basically have to cut out the subject and replace the background, which is a lot more laborious than simple color balance adjustment. (If you just try to push up the brightness until the background becomes white, you'll notice that the highlights on the subject also burn out completely.) If a light gray background is not sufficient for you, it might actually be easier to take a new set of pictures with better lighting.

share|improve this answer
The original picture is added in the original question!! – azamsharp Jan 30 '12 at 16:36
OK, how's that look to you? – Ilmari Karonen Jan 30 '12 at 17:40
Thanks a million man! That looks perfect! – azamsharp Jan 30 '12 at 19:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.