Content-Aware Patch


Adobe® Photoshop® CS6 New Features


Lesson Info

Content-Aware Patch

Now the next thing we're going to do is we are actually going to jump into using some of the new content aware patch options okay content aware is a technology that came around in cs four I believe is when we got the first content where tools called content aware scale and the whole idea behind content aware is that photo shop analyzes your image looks at all the colors it's in your image and it tries not to miss with important colors as you might suspect things like skin tones. If photo shop encounters a lot of green or a lot of blue, it gives those areas of the image a lower priority meaning they're not as important. So if you were using content where scale to resize your image photo shop would resize the background the green and the blue parts without changing the size of the people where the skin tones theoretically so content where is an amazing technology and it allows us to do things like I said scale are pictures so increase background or decrease the size of the background in ...

order scoop people closer together in your images and each new version the program would get more and more tools that take advantage of content aware and in cia six we have a content aware option on the patch tool now so the patch tool lives within the healing brush tool set over here in your tools panel okay, so you can hunt for the band aids if you'd like, and the past tool is a third one and that list okay, paschall is a great tool for getting rid of things like shadows under eyes, piercings, maybe that you have not told the parental units about yet, and you don't want to that picture of you on facebook with the big old nose ring, you can take it out, so the patch show is a great for removing elements in your photo that you just don't want to be there. I've had a bit of a beef with the patch tool for a long time because it's one of the only healing tools that you cannot use on an empty layer. Okay, so the spot healing brush, the the regular healing brush. Those guys all have an option in the options bar that lips photo shop see through the empty layer that you made to do that retouch through that to the layer that actually contains the pixels. That's how you can use those tools? None destructively the patch tool has never had that option for no good reason. Really well, if you turn on the content aware functionality numancia six for the patch tool, you get the ability to do the patching on an empty layer. Now the reason I like to do on my healing and patching on empty layers is because it's more efficient for file size rather than duplicating ah whole bunch of image layers just to remove a mole okay, so the more layers you have in your document that air filled with pixels the bigger your document size is going to be so on and so forth so I like to do all of my retouching and patching on empty layers and then also gives me the ability to reduce capacity if I go a little bit too far with my wrinkle removing a rhyme all removing or whatever it is that I'm doing so in saying six the pastoral now takes advantage of content aware and that's what we're going to look at so let's take a peek at what I've done here in my layers panel so you'll notice this is the original image I thought this was a really clever ones too the lady's lying on grass and she's got little fake clouds around her to simulate flying she's really laying on the grass all those cute so let's say that after the shot maybe I'm going to use this photo in an ad or on the cover of a magazine let's say I want to remove that cloud right there but the situation is such that I can't go back and retake the shot all right can't set it up can't travel can by the model what heavy? So if we use the regular patch tool pre content aware this is the kind of removal you could expect and I'll zoom in a little bit so you can see so here's our before here's our after so that's the regular pash tool it didn't okay job you know, if we didn't know they were better tools to use out there, we would say that was a whole lot like magic because that be way easier than using the clone stamp tool to get rid of that cloud okay, so I'll turn off that layer now I want to show you what we can do using the new content aware option that's pretty amazing, isn't it? Yeah, so there's the before and there's the after so again in comparison with what? See us fives patch tool see how that area grasses to light. So what? The content where option on the past still is doing now is it's making photo shop really look closely at the pixels around the selection that you draw before you do the patch. Okay, so it's looking at what's outside of that selection and in order to do a better job of filling in the inside of the selection okay, and I've got another layer appear to scoot over in the screen just a little bit you'll notice that these two layers are named strict and medium so what's going on here is that I've created the patch on an empty layer okay, so I don't have a cz many pixels on that layer I didn't have to duplicate the whole layer so you can control how strict your, how picky the patch tool is when you're using it in content where mode and you've got several choices, you've got loose, medium strict, very strict, and we'll look at that pop it minion a second, but here's the difference between a strict patch, what you're telling photo shop not to do a whole lot of blending okay, really be strict about copying and pasting what's outside the selection to what's inside the area inside the selection. Ok, so here's, what stretch looks like? And I'll turn that off, and then I'll turn on another continent where a patch that I did using the medium control, not a whole lot of difference, I can see a little bit more blurring in this area right here than I can with the strict okay, so depending upon the image, you can't play around with that poppet menu to determine how much blurring is happening inside the past syria so now let's, zoom back out and let's do it to it all right, so the first thing I'm gonna do is create a new empty layer onto which I'm going to do my patch so you could do that in a couple of different ways. You can click the new layer icon at the bottom of the layers panel, and then you can double click that later to give it a name. I do. I would encourage you guys to get into the habit of naming your layers because you are going to get more and more and more and more layers into your documents and is so helpful to be able to glance over there and see read what you've done, so this one we will call, uh, remove cloud patch, see a content where? All right, so now what we need to do is we need to draw selection around the item we want to zap and always tell folks that when you've got tools like this available and photoshopped, who needs a therapist? Because if you have family reunion shots, you have photos of you and your ex x, you can just get rid of them, just take him out, you know, that cousin that you didn't want to stand next to in that family reunion photo, just get him on out of here. So using the patch still itself, I was able tio quickly draw a rough selection around the item that I want to get rid of. Now the next thing you want to do is trot up to the options bar and using this poppet menu right here, which is new for the patch tool, you want to choose content aware, and when you do that, we're going to get another setting over here in this area called sample all layers, so we're going to turn on content aware there we get our check box for sampling all layers, and that check box you need to turn it on is what tells photo shop a fund shop I fully realize, and I'm on a layer that does not contain any pixels. Please ignore that and look through this layer to the layer underneath, which is where the pixels actually live. If you don't turn on that sample all layers and you try to do this tight, naked home photo shop will squawk at you and tell you that the patch cannot be performed because there are no active pixels on that later, which point you can stick your tongue out of photo shop and turn on sample all layers thick in this adaptation menu that's where you can tell the pastoral health strict to be on the blurring that occurs within your patch. So, as I said, you've got a very loose, loose thesis crack me up for obvious reasons, very loose, loose media's change restricts s so where it is going to leave this, we're going to set it too strict. And again, you're going to have to experiment with that because it will very depending upon how much free background space you've got around the the island that you're trying to get rid of it. If it's right up against something that you want to keep your your success with this is going to vary, but we've got quite a bit of a good background around that cloud grass that photoshopped khun used to feel so now we're going to click and drag inside the selected area and we're going to drag it down to the area that we want for our shop to use for the copying. Ok, so keep holding down your mouse button until you get that in a good spot and if you were doing this on skin, do try tio set your patch source as close to the area that you're fixing as possible in order for the texture and tone to match. In other words, if you're fixing a bag under one of my eyes, you would not take skin from my arm because that would look freaky way would want to take skin from very close to the area, so we wanted we want to stick close by that original selection when you get in the right spot, just release your mouse button, smile smugly and poof photoshopped has removed that cloud now you will get different results every time you do this ok, so if I turned back on if I turn this layer off and I turned back on the stretch that I did you see that I got a little bit of a different result the last time so it will be a random thing every time you do it. Yes sir, yeah I have a question on the way you did it it was it was really good because you have a a big area that you can already selected what if you only have a small area to choose from tow called with a big hole if you didn't ok so let's say let's undo this and we'll have another go at it if I wanted to remove this cloud but I did not have that much grass it's an extremely difficult situation there's there's no real easy fix one possibility would be if I screwed over in this image if I needed more grass let's say for sake of argument that I did I could use content where scale teo, give me more of that background over on the right hand side and then do the patch but it's it's a dicey situation when you don't have a good clean background area the size of the island that you want to delete, you might have a go at it with a different tool gosh maybe content where phil would would be a little bit better or gosh you might even have to do a little bit of a cloning with a clone stamp tool to give yourself a little larger create a larger spot for that pass to take place or you could try using the healing brush to remove that item or the spot hailing brush. Even so obviously it's better if you've got a good free space the size of the thing that you want to get rid of and you may have to manipulate your photo a fair amount in order to create that space but that's a great question so let's have another go at this all right, so let's go himto leap that layer that I made and we'll add another new layer okay patch c'e so the last time you guys saw me grab the past who'll come over and freehand draw the selection you do not have to do that you don't have to use the patch told create this election what you could do instead and let's just give it a shot we're going to use the quick selection tool okay to use the quick selection tool you do need to be on the layer with the actual pixels okay, so what we're going to do is we're going to use the selection tool of our choice we're going to make our selection, then we're going to activate the empty layer and then we're going to switch to the past tool all that is to say you're not forced to freehand draw a diagram selection with past tool I can do it easily because I've been doing it for one hundred years with a mouse in a track pad but if your hands not that steady and you're not used to doing that kind of thing, that could be very difficult so use this election tool of your choice so here we're going toe easily select it using the quick selection tool because again quick selection tools based on color you can click or paint to select the color that you're mousing over so now what I might do is expand this election a little bit just to catch some of the grass else if I do a patch, I'm probably going to end up with a tiny quite outline which will put like we've got a ghost of a cloud in our image okay, so an easy way to expand the selection just a little bit is to trot up to the select menu choose modify expand first off it's going to ask you how many pixels you want to expand that selection by depends on the resolution of your image. If you if you're working with a high resolution image, you'll need a higher number here low resolution images you get away with a lower number so I'm just going to increase this election by five and see if that does it editing increase it quite enough so I'm gonna go back to the select mini choose modify, expand and we'll go ten pixels this time see how it popped out my selection a little bit now I know I've gotten that whole object in my selection I've include a little sliver of background, so theoretically the patch tool should do a better job so now I can click on my new empty layer that I created for the patch and now we can switch to the patch tool so come over here, grab the patch tool trot up to the options bar make sure you've got it set to content aware make sure sample all layers is turned on experiment with the adaptation menu field like and then click and drag within the selection to the area you want photoshopped to use and we'll go over here this time we've got a little bit of a shadow area in this part of the image swimming to keep my source for my patch over in the lighter portion and should do a little bit of a better job there we go so to get rid of my selection I compress command d two d select and that did a really great job so what's the moral of the story here I personally I'm never going to use the past tool in its regular mode again simply because of that sample all heirs checkbox to be quite honest, I really can't tell on average that the content of where part of the patch tool really makes that big of a difference it did on this photo, but on other photos that I've tested it on, I really can't tell the difference between using it in content, aware mode and not having an incontinent where mode but what the big thing is to me is that sample all layers check box, so I will never use it in regular mood again just because of that. But on this particular image, it did do a good job and I've got another image to show you here. Photoshopped thank you so here's the original photo and here's what we're going to deal with the paschall. Okay, adobe will tell you that patch still set to content and where will do a much better job of preserving horizontal lines that you've got in your image. So since we have a horizon here let's, give that a shot, okay, so we will do this a couple of different ways. Let's go ahead and create a new layer onto which we're going to do are patching oops, I double click to the wrong spot that's a that's ah, I think to be aware of the layers pain when we talked about it a little bit yesterday, you do need to be cognizant of where you double click in your layers panel, because different things will happen. You also need to be congressman of where you control clicker, right? Click in your layers pale because you will get different menus and so I'm saying that just so you don't panic if you get something unexpected. If you're trying to double click to rename a layer and you get that layer style dialog box, don't panic take a deep breath, just press cancel and know that you double clicked in the wrong spot. All right, so let's name this one, we'll call this one regular patch. All right, so now I'm gonna use my selection tool again to create the selection before I hop into the patch tool. Ok, so we click on the active click to make the active layer, the one that has the pixels on it. And since we've got good contrast between the background and the little boy that we want to zap, you know, bands break up all the time. So bands of superheroes break up tio it's, not uncommon. So now we'll come over here and we'll make a quick selection of our little boy, and I will tell you with the quick selection tool the size of the area that photo shop is grabbing is directly related to the size of your brush cursor. So if you're trying to select relatively small areas, reduce your brush size okay, because photo shot will grab a big old swath of pixels if your brush size is very big okay, now I've got an area over here on the left that I did not mean to include in my selection, but I can easily subtract that by putting the brush in subtract mode which you can do in two ways you can try to the options bar in clicked a little brush icon with a minus sign above it or you can simply and were quickly hold on a modifier key and that's option on a mac or altana pc so I'll do that and you can see inside the brush cursor itself see how has a plus center now that tells you that the tool is an ad to mode you paying anywhere that areas will be added to your selection but when I hold on option on the mac or altana pc now I get a minus sign inside there so any area I paint across is going to be removed from that selection so it's a really easy way toe make that selection ok? So let's call that done and again I want to expand it just a little bit because I don't want to leave an outline of the of the kicked out superhero so let's go to the selective in you and she's modified expand again depending upon the resolution of your image you may have to enter a higher number to get that selection to pop out we'll say ten pixels and that looks good so now we're ready tio activate our empty layer to click to activate the empty later they're going to do the patching on switch to the patch tool pop up to the options bar make sure you've got your settings right and they will stay this way unless you change them ok so if you always use the continent where tool or continent where mode of the pasha when you always turn on sample all like layers those options wolf stay sit until you change them so in other words you may not you don't you won't always have to trot up here and change all of that stuff all right so now let's click within our selection and let's move this election to the area that we won't put a shop to use for the coffee now since I've got that horizon I'm gonna move my selection up and down to try to help photo shop and make that horizon stay straight because that would be pretty funky into the world with the sea is parting all right so let's call that good and then this release your mountain and that's pretty much it get rid of this selection by choosing select d select or using its keyboard short of short cut of commander control d and it didn't. Amazing job. Now we've got a little bit of blurry area right here, okay, so how would you clean that up? You could do another patch, okay, so I might come over here. I still got the patch still active. I can just last, so those areas really quick and then dragged them to another part of the sand to try to get rid of some of that blurring. So, depending upon the image and what you're trying to get rid of, you may have a little bit of cleanup to do. But then again, you may not.

Class Description

Lesa Snider returns to CreativeLive for an intensive Adobe® Photoshop® CS6 tutorial. Whether you've already upgraded or are still deciding, Lesa shows you practical yet non-destructive editing techniques you can use every day. This 3-day course is a perfect companion to Lesa's previous Adobe® Photoshop® CS5 tutorial on CreativeLive.

Lesa dives further in-depth into advanced filters such as Puppet Warp, Liquify, and Lighting Effects, which all take advantage of the new processing power of Adobe® Photoshop® CS6. Lesa also spends a full day covering Adobe® Photoshop® CS6's brand new video features.

Software Used: Adobe Photoshop CS6


Alvin Lim

Lesa's methodical way of coaching is done with ease and clarity. Together with John Greengo and Sue Bryce, she is one of my favourite mentors in CL. I purchased her CS5 and even before finishing it got the CS6 intensive class. Now Photoshop is no monster to fear but a powerful monster to create impact-fully beautiful photos. Good for both beginners and advance users!