This is a blog by Bastet Hazelnut about life, design, marketing, bastnut and everything else in Second Life and other virtual worlds.

How to remove a background with GIMP

Us GIMP users tend to be left a bit out of help, cause most use Photoshop for their image manipulation. However GIMP is a pretty powerful and freely distributed raster image manipulation program. Not long ago I found a tutorial for compositing with Photoshop. The tutorial is pretty good, but obviously it doesn't help all the way with GIMP.

In the following I will describe how I removed a background with GIMP from an image I took in SL. You can see the before and after shots below.

How to remove a background on GIMP

First of all I took the pic, using a slightly grey, full bright background. I used the grey one, because often a white one doesn't play nice. Some like to use a bright green background. This is one of those things you need to try yourself to see what works best. Next I created a black and white version of my image. To do this you can use the windlight settings from the tutorial I mentioned earlier. I did this a bit different way. I duplicated the background layer of my image and chose Colors > Desature... and clicked OK.

How to remove a background on GIMP

Then I chose Colors > Brightness-Contrast... and moved the contrast slider to it's max (127) and the brightness slider to -79. Please notice the amount of brightness depends on your picture, so you need to try and see which setting is the best. Now I had created a black on white image.

How to remove a background on GIMP

In order to make my evil plan to work I did need it to be white on black. So I chose Colors > Invert. After creating this image with white silhouette on a black background, I copied it and made the layer invisible by clicking the eye next to the said layers thumbnail.

How to remove a background on GIMP

After this I made the original image layer active by clicking it and chose Layer > Mask > Add Layer Mask.... From the pop up I chose White (full opacity) and clicked Add.

How to remove a background on GIMP

I could see the mask appearing on the layers list as a white rectangle next to my original image. Right after doing so I pasted the white on black image I had copied before, which now appeared on the layers list as a Floating Selection (Pasted Layer). The image had now a transparent background. I right clicked this floating selection on the layers list and chose Anchor Layer from the menu that popped up.

How to remove a background on GIMP

The white on black image replaced the white rectangle on the layers list. I right clicked on that layer and chose Apply Layer Mask.

How to remove a background on GIMP

After all of this I could copy and paste my image on a background of my choosing! Oh, by the way, the style credits will follow later.

16 October, 2010 - 00:48 by Bastet

Comments

Wooo, thank you again! Me and background removing weren't friends before.

Chus's picture
Chus
16 October, 2010 - 01:18 (Permalink)

I'm so happy if I can help!

I've had problems with this myself and it's still sometimes a bit of a struggle. But I'm getting better and better with this all the time and for me it's been all about trial and error. I hope this will remove some of the error for my fellow GIMPers. :)

Bastet's picture
Bastet
16 October, 2010 - 01:35 (Permalink)

[...] How to remove a background with GIMP | Kis Kis, Bang Bang bastet.helmikuu.net/2010-10-how-remove-background-gimp – view page – cached The blog of Second Life avatar Bastet Hazelnut, owner and designer of Kis Kis. Fashion, design, interiors, architecture and other SL related posts and store news. Tweets about this link [...]

 Twitter Trackbacks for How to remove a background with GIMP's picture

Ihanaa, en malta odottaa, että pääsen kokeilemaan. Ja vieläpä uudella koneella, jonka sain vastakoottuna keskiviikkona.

Kiitos! <333

Bayberry Lilliehook's picture
16 October, 2010 - 08:10 (Permalink)

Hienoa, toivottavasti onnistuu!

Bastet's picture
Bastet
16 October, 2010 - 15:04 (Permalink)

[...] | flowey | Kis Kis | accessories TweetAs promised, here are the style credits for the background removing with GIMP [...]

Bikinigirl | Kis Kis, Bang Bang's picture
16 October, 2010 - 23:03 (Permalink)

Your comment

Why won't you write something? Your notes in English, Finnish and maybe even Swedish are valued and welcomed. Please respect everyone and do not spam. If your comment doesn't show up immediately, please DON'T PANIC. It will be resurrected soonish. More info...

Kommentoida saa myös suomeksi! Pyydän, ettet hermostu, jos viestisi ei tule heti näkyviin. Ongin sen esiin suodattimesta pian.

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Email addresses will be obfuscated in the page source to reduce the chances of being harvested by spammers.
To prevent automated spam submissions leave this field empty.

bastnut

Sponsored by

Flickr

Quick and dirrty vanity pic

Want to trade links? Let me know inworld, through the contact or on comments of any blog post!