Hello and welcome to yet another tutorial by 
Davies Media Design my name is Michael Davies,   and in today's tutorial I'm gonna show you guys 
how to use the GIMP Resynthesizer plugin - more   specifically the Heal Selection tool within that 
plugin to get rid of objects in an image. This   is a tool that's very similar to the Photoshop 
Content Aware Fill feature, and in my opinion   it actually works a little bit better than that 
feature. And so here is the photo that I worked   on as an example and here is the top layer. And 
if I hide that layer this is what it looked like   before - so we have this chicken in here that this 
guy is throwing up in the air - and then here's   after - and this literally took me like less 
than five minutes to do. And so this is a very   effective tool, and I'm using GIMP 2.10.6 which at 
the time of this tutorial is the latest version of   GIMP. But of course before we get into all that 
I want to direct you guys over to my website at   DaviesMediaDesign.com. As always we have tons 
of GIMP video and text tutorials on here,   as well as project translate. You can watch one 
of our GIMP playlists, support us on Patreon,   or view our poll of the week results - so 
definitely check those items out. You can   also enroll in our GIMP Photo Editing Course: 
From Beginner to Pro Photo Retoucher, which is   now a best-seller with over 500 students. And I'll 
include a link to this as well as all the relevant   links from this tutorial in the description of 
the video. So we're going to be using that photo   of the guy throwing the rooster up in the air, 
but we're also going to be using this photo - and   they're both from Pixabay. And I'll include links 
to both of these in the description of the video.   Just click "free download." And if you want to 
follow along I believe I used the 1280x746 version   of this - I might have used the 1920 - and then 
just click "download" right here. And here is the   Resynthesizer plugin we're going to be using, and 
you could download it on Mediafire. So I'll just   click this "download" button here, and you should 
see your download pop-up right here. This will be   a zip file - just click on this arrow right here, 
and then click "Show in folder." And so here we   have our plugin. Right-click on this and go to 
"Extract all," and it's going to ask you where   you want to extract the files to, and this is 
just going to be right in my downloads folder,   so I'll hit extract. And here are all your scripts 
for this plugin. And so here is my plugin folder   for GIMP, and you can see this is where you need 
to navigate to get to this folder. So each of   these are different folders you need to enter. 
So we have the C: Drive, and then Program Files,   GIMP 2, lib, which is short for library, GIMP, 
2.0, and then plugins. And so plugins is the last   folder and it'll take you here. And then what you 
need to do is highlight all of these scripts that   you want to include in your GIMP. So these are all 
of the scripts or all the features that come with   this plug-in. Each one of these is a different 
Python script which represents a different tool   or a different feature. And all you've got to 
do is click and drag these into this plug-in   folder. I've already done that. They're down here 
at the bottom, so I'm not gonna do it again. And   then you've also got two other folders here - 
so one is for Windows 32-bit and the other is   for Windows 64-bit. This just depends on which 
operating system you're using - in my case I'm   using Windows 64, so enter that folder, highlight 
those two application files, and then drag and   drop them into your plug-in folder as well, which 
I've already done here. And so these are both for   the Resynthesizer tool, which we're not going 
to be going over today. And we're really only   going to be going over the Heal Selection tool 
today as that's similar to the Content Aware Fill   tool in Photoshop. But I'll have an article up on 
DaviesMediaDesign.com on what all of these other   tools do within GIMP. So after you've dragged 
those files into your plug-in folder you're   gonna have to close down GIMP and reopen it, which 
I've already done. So if I come to Filters>Enhance   here you'll see the tools that come with 
it. So Heal Selection, Heal Transparency,   Sharpen by Synthesis, and Uncrop. And if I go 
to Map I've also got Resynthesize and Style.   And again we're gonna go over these in an article 
on my website. But for today we're just going to   go over the Heal Selection tool. And so I'm going 
to delete this top layer here and I'm gonna start   back with my original image. And I'm gonna grab 
my zoom tool and I'm gonna zoom in here on my   rooster. And the way I use this tool is I grab a 
selection tool - so in this case I'm gonna grab   my Free Select tool, and make sure the mode is set 
to either "Replace the current selection" or "Add   to the current selection." And then I'm going 
to loosely outline the object I want to erase   in my photo - so in this case the rooster - and I 
do want to leave a little bit of room around the   actual object itself just so the Heal Selection 
tool can pull pixels from the surrounding area   and sort of blend those pixels in with this 
border that's going on around the object.   So I close that loop right there using my Free 
Select tool and hit the "enter" key. And so now   this object has been selected, and now I'm going 
to use my Heal Select tool. So I'm going to go to   Filters>Enhance>Heal Selection, and we're gonna 
get this Python Fu script dialog box here for   the Heal Selection tool. And so the first line is 
"Content sampling width," and this is in pixels,   and what this does is it's basically allowing 
you to choose how far outside of the selection   area here - the selection area of course denoted 
by these marching ants - so how far beyond this   line right here the Content Selection tool is 
choosing pixels to fill in within the selection   area. So basically right now it's set to 50 
pixels, so it's going to grab pixels from about   right here and it's going to use those pixels 
to determine what should be inside this area.   And so basically it's trying to form continuity 
here between the object that this is blocking. So   it's trying to fill in the pixels and guess what's 
gonna come next here. So you can make this larger   or smaller if you want. I'm gonna keep it at 50 
for now. And then "Sample from" is where you're   grabbing those pixels from. So right now it's 
set to "all around" which means it's going to   grab pixels from around the entire selection area 
we drew. You could change this to "sides" so it   only grabs from the left and right side, or you 
could change this to "above and below" so it'll   only grab pixels from the top and the bottom. I'm 
going to keep this set to "all around." And then   the "filling order" just determines in what order 
those pixels are filling in the selection area.   Right now it's set to "random" which means it's 
just going to randomly fill pixels in. "Inwards   towards the center" means it's going to start at 
the top or it's going to start at the selection   line here and it's going to move inwards. And 
then there's also "outwards from the center"   which means it'll start from the center and move 
towards the selection line. So I'm just going to   choose "random" and I'll click "OK." And now our 
object has completely disappeared. And I'll hit   ctrl+shift+a to "select none." And for the most 
part it's really hard to tell that there was an   object here but what we can do is grab our heal 
tool and hit ctrl to grab a source area and then   you could just heal the lines right here where 
you could see sort of a seam, and just go around   anywhere and I'll hit ctrl again and just sort 
of heal that area to try to minimize any seams. And then if I grab my zoom tool and zoom out 
you can see this didn't do a perfect job. So   let me just increase the Heal tool brush, hold 
ctrl and just work on further healing that.   And I'll just zoom out a bit more. And so now 
it's really hard to tell there was an object   there. And you guys can work on this a little bit 
more using the Heal tool or using the Clone tool,   but I'm going to show you another example here 
with this light post here. And so I'm gonna do   the same thing I'll zoom in a little bit, and 
let me just zoom out a little bit more there,   grab my Free Select tool, and what I need to do 
is outline this object again. So I'll just go   ahead and outline this and then I can release, 
and I just need a straight line here. So I can   just drag the straight line all the way towards 
the bottom, loop around here, drag this all the   way until we're connected there. So we have 
another closed loop. I'll hit the "enter" key,   and now I'll go to Filters>Enhance>Heal Selection, 
and we have the same options here and I'll click   "OK." And now that object has been erased. I'll 
grab my zoom tool and just zoom in a little bit   here. There's a little bit of a color here that 
was used to sort of - if I hit ctrl+z - emulate   the light that was shining from this lamppost. 
So I can either grab my Free Select tool again,   make sure the mode is set to "Add to current 
selection," and just add any parts of that light   inside of the selection area and hit "enter." And 
then just run that again. So Filters>Enhance>Heal   Selection and click "OK." Select>None. So there's 
still some pixels here on the outside. The other   option is to just grab the heal tool, hold ctrl, 
choose a source and just try to paint away any   of that glow that's showing up from where the 
light used to be. And I'll grab my zoom tool,   hold ctrl and zoom out. And so now you can see 
it looks like there was never any lamppost there,   and it's completely erased that with really 
minimal displacement of any of the pixels   here despite this being a pretty complicated 
background. So as you can see this plugin is   super effective and I've seen some people say 
that they're not sure whether or not it works   with GIMP 2.10. Again this is GIMP 2.10.6 I was 
using and this plugin works fine for me in this   version of GIMP. And so I think it really rivals 
that Content-Aware Fill tool found in Photoshop.   So that's it for this tutorial thanks for watching 
if you liked it please subscribe to our YouTube   channel at youtube.com/DaviesMediaDesign. You can 
also visit our web site at DaviesMediaDesign.com,   and you can enroll in our GIMP Photo Editing 
Course: From Beginner to Pro Photo Retoucher,   and I'll include a link to that as well as 
all the relevant links from this tutorial   in the description of the video. So thanks 
for watching and we'll see you next time.