It is currently Thu Apr 25, 2024 5:38 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Background Removal Using the Paths Tool
PostPosted: Sat Oct 01, 2016 7:53 am  (#1) 
Offline
Script Coder
User avatar

Joined: Apr 13, 2010
Posts: 244
The original tutorial was created with a Pre-2.4 version of GIMP. While most of the steps should be the same, many of the screenshots might not reflect the newest GUI. I will update the tutorial with new screenshots if it's too confusing. Please note you need a basic understanding of using the paths tool to complete the tutorial. Art

Alright, let's begin our tutorial:

[*] Open up the image you wish to cut away from the background. If you plan on using an image that has no transparency to it or you'll be working on the background layer, you need to add and "Alpha Channel" to it. Here's how you do it: Right-click on the layer and select "Add Alpha Channel".

Image

Now that you've gotten that out of the way, you need to create your path around the object you wish to cut out. Again, I'm not walking you through those steps. But I will give you a couple of suggestions that I've found work best for me:

[*] Zoom in on the object as far as you can. Don't worry about not being able to see your entire image. You'll be able to pan around the screen while creating the path. But for the best results, you need to be up close and personal with the object.

[*] Because the edge is not always well defined, I would err on the side of caution by placing your anchor points closer to the object where you are sure the edge is. You may lose a little bit of detail, but blending, blurring, etc. can help correct that.

[*] Don't go overboard placing anchor points. I've found that adding too many makes the render have a jagged or blocky appearance. What I generally do is create an anchor at every location where there's a major direction change. Later, I go back and use the "handles" to create curved line segments to more approximate the render edge. If additional anchors are needed, I'll add them at that time. Sometimes a render has to have a lot of anchors, that's ok, just use your best judgment, there are no rules.

Here's my example of a image I'm working on. The red line is there only to show what the path looks like. Yours won't look like this.

Image

As you will note, I've adjusted most of the path on the moth to fit the outline. I left some of the path as originally drawn to show that my first path wasn't made to fit the object too closely. Also, remember to close your path when you get done. (Ctrl-click on first path anchor) Even if the path doesn't look the way you want it to and corrections are needed, close it. If you don't, and you convert it to a selection before closing it, GIMP will automatically do it for you, and depending on the distance between your first and last anchor, you may not like the results. The nice thing is, paths are always saved and can be edited later.

This next graphic shows me adjusting the path on the bottom portion of the moth. Here, I'm adjusting curves with the handles and moving & adding anchors as needed.

Image

This next screenshot shows me:

[*]Converting the path to a selection. After you close the path (Ctrl+click with the path tool), hit the enter key to create a selection.

[*]Inverting the selection (Ctrl+i) Notice that everything outside of the selected section, including the outline along the image edge, has the marching ants. They weren't like that when we just had the image selected.

[*]Deleting the background. Use the Delete key.

Image


Here's a final screenshot with a new background. Looks pretty good doesn't it!?

Image

Well, I hope you learned something and will be able to put this in your arsenal of tricks. If you have any questions or need clarification, please don't hesitate to ask.

Happy GIMPing!

Art

_________________
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime! Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Background Removal Using the Paths Tool
PostPosted: Sun Oct 02, 2016 11:13 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Thank you fencepost :bigthup

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Background Removal Using the Paths Tool
PostPosted: Sun Oct 02, 2016 11:59 pm  (#3) 
Offline
GimpChat Member

Joined: May 12, 2015
Posts: 4694
Thank you, Fencepost. This is really a very nice tutorial especially for those just starting but I am always helped by revisiting and getting "reminders".


Top
 Post subject: Re: Background Removal Using the Paths Tool
PostPosted: Mon Oct 03, 2016 1:53 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12658
Location: Spain, Aragón
Thank you Fencepost. I agree with Pat, reminders are necessary and you did a very useful tutorial. Awesome presentation, too :tyspin

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.


Top
 Post subject: Re: Background Removal Using the Paths Tool
PostPosted: Tue Jan 31, 2017 7:38 am  (#5) 
Offline
GimpChat Member

Joined: Nov 14, 2013
Posts: 101
Nice and simply put, coming from photoshop I must say I prefer the paths tool in gimp, find it easier to use. I do wish somone would decrease the size of the nodes though, those balls are enormous, especially when you want to zoom in and work close.

_________________
using Gimp 2.10.8 with Linux on an ancient laptop


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GEGL Simple Background Removal Tool (by color range)

1

No new posts Attachment(s) REMBG - an open source offline usable background removal AI

12

No new posts Paths Tool Help

1

No new posts Attachment(s) erase background using free select tool?

3

No new posts Attachment(s) Use of Fuzzy Select tool to remove white background from black text

2



* Login  



Powered by phpBB3 © phpBB Group