Content Aware Fill
There's another tool we have here. It's called the Content Aware Fill Tool, and if you're familiar with Photoshop dating back to, you know, CS5, CS6, this was breakthrough, cutting edge technology back then, that now has kind of just found its way into other tools, where what you're seeing with the Content Aware Move Tool and what you're seeing with the Patch Tool, those are all things that actually do, kind of source, this fill technology. So if we were to go and use Content Aware Fill, there's a couple reasons why we would use this, and one of them, first of all, let's make a selection for some of these rocks here and I'll show you Content Aware Fill first there. So if I go there and I grab, I zoom in here and I grab this rock and I wanna fill this in. Let's say I didn't wanna use something like the Clone Stamp Tool, or I didn't wanna something like the Patch Tool, for some reason or another. I wanted to select multiple areas, like maybe press shift and select this area too. I could ...
then come up here, press shift F5, or go to edit. Shift F5. Why is it, oh, 'cause I'm stuck up here. If you're stuck in here, it's not gonna work. Shift F5 and then go to content aware, and select color adaptations so that it does help the color around it, and if we press OK... It's not gonna do what I want it to do. That's interesting. (laughs) Shift F5 and content aware. Let's turn color adaptation off, let's see what happens there, press OK. Okay, hold on one second. Shift F5, color adaptation, let's see if the blend mode is the problem here. Maybe we'll change it to normal, press OK. There we go, it was a blend mode. So as it was trying to fill in those areas, it was using the blend mode of soft light to fill in those areas, which is not what I wanted. I want it to literally take a selection for me, so setting it to normal was what did that for me. So if I zoom in here, we can see that if I press command or control D to deselect that, we've got a hard edge around there. It did a good job of filling that stuff in. All that stuff disappeared, right? But it's got that hard edge around it. One thing that I did not show you was selections. That you can also do while you have a selection available, is if you go up to select, and you go to modify and go to feather, this will feather the edge before we even do the Content Aware. So if we feather that edge by, let's say five pixels, press OK, and then we go to shift F5, and then Content Aware Fill, it's gonna feather that edge so we don't get quite as much of a hard edge. Hmm, it didn't do it quite as well as it did before. (laughs) It didn't like that feather. Let's go ahead and go back to our selection here. Let's go back here, just act like that didn't happen. Okay, we'll go select this and then select this, and then we go to select and we'll go to modify and we'll go to feather, change this to two pixels, press OK. And then shift F5 and then Content Aware, yeah. We had too many pixels selected. So at five pixels, it was selecting so much of that area around it that when it came in and did the feathering, it also did too much of a color adaptation because of the amount of pixels that we had feathered there, but if we just do two pixels, it does pretty well. But this is basically the technology that we used long before all the other tools were around. Now where this can be helpful, is, let's say with this image, we wanted to extend the sky a little bit. Okay, so let me go ahead and turn this layer off, make this an un-background layer and go to image and go to canvas size. Right now, with this set to canvas size, I'm saying that the width of this image is 20 by 13. If I change this mode down here to relative, and I change the height to two, that's gonna give me a relative height increase on both the top and bottom of the image, but if I go ahead and do this, that's gonna make sure that the height increases by two inches up and not two inches down and up, okay? So once I do that and press OK, I've added two inches to the top of my canvas. So if I wanted to fill this area with the rest of those clouds, I would use one of my selection tools, like maybe the Magic Wand, click that area that's empty, and I would use something like the Content Aware Fill to fill that in. Shift F5, Content Aware Fill, it's gonna do some calculations and it's gonna fill that sky area in. This can be great if you've taken a shot, so you've got a shot, imagine a building, you got the top of the building, a city skyline, and one of those buildings is just creeping into the top and now you've got a compartmentalized image that has stuff on the left, stuff on the right, building in between. Well we want air to breathe around that top area. So instead of dumping that file, you can just add some area to it, fill that area in with Content Aware Fill, and now you've got the area replaced. I do have to give you some words of caution here though. When we do this, it might make a seam, and we don't want a seam. If it does make a seam, and you see a seam of transparency underneath there, just go ahead and take a step back, and now we're gonna go up to select, go to modify, and go to expand, and we're expanded by two pixels. So what that does, just that two pixels, is gonna allow Photoshop to see more of the area below it, below that selection, and feather those two areas together. Shift F5, Content Aware Fill, press enter, and we're good to go. And actually what it did there was it made a much better fill, and even if you look at the top of that sky, it even made it look like it's branching out into a perspective, pretty interesting. That added more sky. So that's areas that use Content Aware Fill. What's happening there though, we got repeating patterns, don't we? There's a lot of repeating patterns there that we would not want the viewer to see. If that was the case, we could then come to something like the Clone Stamp Tool, take different areas. Maybe a bigger area from over here, alt or option, click here to make it kind of blend in a little bit better, break up any of those repeating patterns that we would see in the image so that the viewer doesn't really see that we used something to expand the sky.