Photoshop basics

How to use Content-Aware Crop in Photoshop

Flatten and crop an image without content awareness

This is an image that I opened in Photoshop. I want to straighten and crop the image without losing any of the children in the image. But the boy in the yellow jersey on the right is too close to the edge, which could cause a problem. So let's see what happens if you try to straighten and crop it without using the Content-Aware feature of the Crop Tool:

Image #66703701 is licensed and used with permission from Adobe Stock by Steve Patterson, Photoshop Essentials.com

The original picture. Credit: Adobe Stock.

Choose the Crop tool

I will choose the Crop Tool from Toolbar :

Select the Crop Tool from the Photoshop toolbar.

Choose the Crop tool.

Where do I find the Content-Aware option?

With the Crop Tool selected, the Content-Aware option is in the options bar along the top of the screen. For now, I'll leave Content-Aware unchecked:

Content-Aware option for the Crop Tool in the options bar in Photoshop CC

The Content-Aware option for the Crop Tool is currently turned off.

Choose a leveling tool

To straighten the image, I'll select the straighten tool in the options bar:

Selecting the Straighten Tool in Photoshop's options bar

Choose a leveling tool.

Rotate and straighten the image

Then I'll draw a straight line across something in the image that needs to be straight, either vertically or horizontally, in order for Photoshop to use the angle of that line to rotate and straighten the image . For an outdoor image like this, ideally I could draw a straight line across the horizon in the background. But in this case, there's no really clear horizon line thanks to the rolling hills, so I'll need to look at it.

Read also:Image size in Photoshop

I'll start by clicking to mark a starting point for the line below the trees in the lower left of the image. And then, holding the mouse button, I'll drag diagonally to the right, just below the trees. An angle of about 9 degrees should work:

Draw a line across the horizon in the image using the Straighten Tool in Photosohp CC

Drag a diagonal line across the image with the Straighten Tool.

The first problem - empty space in the corners

I'll release the mouse button, at which point Photoshop will rotate the image to straighten it. It also draws a cropping border around the image. And this is the first problem. Note how much of the image falls outside the cropped area after it is straightened. This is because rotating the image added a whole bunch of empty space around the image, as we can see by the checkerboard pattern in the corners of the document.

Photoshop will not extend the crop boundary to the empty space, because we'll end up with an empty space in the image. It will only extend the crop bounds to the edges of the image itself. At least, this is how things worked before the Content-Aware feature was added, which we'll look at in a bit:

Without content awareness, cropping the image will cause a lot of the image to be lost.

Without realizing the content, cropping will lose a lot of the picture.

Second problem - missing part of my topic

I'll accept the crop by pressing Enter (Win) / Return (Mac) on my keyboard. This brings us to the second problem. Remember when I mentioned that the boy in the yellow jersey on the right was really close to the rim? Well, after straightening and cropping the image, part of it fell completely off the edge! There was no way for Photoshop to crop the image after straightening it without cutting the boy's arm and feet from the image. Maybe mom and dad will not be very happy with this result:

Read also:How to enlarge and reduce an image using Photoshop

Image straightened and cropped without content-aware cropping in Photoshop

Without being aware of the content, cropping the image cuts part of the subject out of the image.

How to straighten and crop an image using Content-Aware

Now that we've looked at how the Crop Tool works without Content-Aware, let's straighten and crop the image again, but this time with Content-Aware turned on. I'll undo my initial crop by going to the Edit menu in the menu bar and selecting Undo Crop:

Choosing the Undo Crop command in Photoshop

Go to Edit > Undo Crop.

This restores the image to its original state:

The image has been restored to its original state

The original image again.

Step 1: Select the Crop tool

I'll select the Crop Tool again from the toolbar:

Select the Crop Tool from the Photoshop toolbar.

Ensure that the Crop Tool is selected.

Step 2: Turn on Content-Aware in the options bar

This time, I want to turn on Content-Aware, so I'll click inside its checkbox in the options bar:

How to turn on content-aware cropping in Photoshop

Turn on content-aware cropping.

Step 3: Select the flattener

Then, still in the options bar, I'll select the Flatten tool again:

Selecting the Straighten Tool in Photoshop

Choose a leveling tool.

Step 4: Draw a line across something that should be straight

And just like before, click and drag a diagonal line with the Straighten Tool from left to right below the trees in the background:

Read also:Increase the canvas size

Adjust the image with the Crop Tool in Photoshop

Drag the same diagonal line across the image using the Straighten Tool.

difference between the content

I will release the mouse button to straighten the image. And this time, with Content-Aware turned on, we get a completely different result. Instead of limiting the cropping area to just the image itself, Photoshop expanded it to some empty space in the corners.

Why is Photoshop suddenly suitable for adding blank space to an image? The reason is that it is not going to add an empty space. Alternatively, with Content-Aware enabled, Photoshop can use image details near those empty areas to automatically fill them in with similar details. If there is a lot of grass around the area, he can fill in the empty space with more grass. And if there is a blue sky, it can fill the space with more sky blue. In other words, Photoshop is now saying, "Go ahead and include those blank areas, and let me know what should be there."

 

The result after flattening the image using content-aware cropping in Photoshop

The larger crop suggested by Photoshop with Content-Aware enabled.

At this point I can grab any of the sides or corners of the cropping box and extend it even further into the empty areas. But keep in mind that the more we ask Photoshop to figure it out on its own, the higher the risk that it will be tampered with (just like the rest of us). How far you can push Content-Aware will really depend on the image. In general, for best results, try not to extend the cropping stroke beyond the initial size suggested by Photoshop. But again, it will depend on your image.

Step 5: Press Enter (Win) / Return (Mac) to crop the image

To accept the crop, I'll hit Enter (Win) / Return (Mac) on my keyboard. This time around, since Photoshop has a lot to figure out, we won't see immediate results like we did before. Instead, we'll see a progress bar telling us how far Photoshop is in the process:

Content-aware cropping progress bar in Photoshop

A progress bar keeps you company while you wait.

In most cases, it won't take more than a few seconds, and here we see the results. Thanks to content-aware cropping, Photoshop was able to fill in the empty spaces in the corners with more detail. And the boy in the yellow jersey is still in one piece, with room to spare. There may be some areas that will need a quick touch-up with one of Photoshop's retouching tools, such as the Clone Stamp or Healing Brush. But overall, content-sensitive cropping kept the image looking great:

How to straighten and crop an image using content-aware cropping in Photoshop CC

Result after straightening and cropping with Content-Aware enabled.

Use content-aware cropping to widen the edges of an image

We've seen that content-aware cropping is great for straightening an image. But it is also useful for widening the edges of an image, adding more space to the top, bottom, left or right. Here's another image, also downloaded from Adobe Stock, that I opened in Photoshop:

A second Adobe Stock image opened in Photoshop

The original picture. Credit: Adobe Stock.

Step 1: Select the Crop tool

Let's say I need to add more space over the balloons at the top. To do this, I'll select the Crop Tool from the toolbar again:

Selecting the Crop tool in Photoshop CC

Choose the Crop tool.

This places the standard cropping borders and handles around the image:

Cropping borders and handles around an image in Photoshop

Crop borders and handles surround the image.

Since I want to drag the top handle without moving the other handle, I'll make sure the aspect ratio option in the options bar is set to ratio, which is default. We will make sure that the width and height fields immediately to the right of the aspect ratio option are both empty. If it's not empty, I'd like to click the clear button to clear the values:

Set aspect ratio options for the Crop Tool in Photoshop

Set the Aspect Ratio option to Ratio, leaving the Width and Height fields blank.

Step 2: Turn on Content-Aware in the options bar

I'll make sure Content-Aware is checked:

Turn on Content-Aware for the Crop tool in Photoshop

Select the Content-Aware option.

Step 3: Drag out one or more edges of the cropping border

And then, to add more space to the top of the image, I'll click on the top handle and drag it up:

Dragging the cropping handle up to add more space over the image in Photoshop

Add more space over the image.

When I release the mouse button, Photoshop fills the extra room with transparency (an empty space), as we can see again by the checkerboard pattern:

Empty space added with the Crop Tool is temporarily filled with transparency

The result so far after adding extra space over the image.

Step 4: Press Enter (Win) / Return (Mac) to crop the image

Then to accept the crop, I'll hit Enter (Win) / Return (Mac) on my keyboard, and here's the result. Without content-aware cropping, Photoshop would have simply added the empty space and left it at that. But with Content-Aware enabled, Photoshop looked at the surrounding area and did a great job of filling the space with more blue skies and random clouds:

How to add more area to an image using content-aware cropping in Photoshop

Same image now with more space on top.

It works like magic, except when it doesn't

Photoshop CC's content-aware cropping feature can be a real time-saver, even life-saver, when we need to add more image details around the image. But besides knowing how they work, it's also important to know their limitations, so we can keep our expectations in check.

Content-aware cropping works best in areas with relatively solid colors, such as a clear blue sky, or in areas with a lot of random detail, such as grass, leaves, or sandy beaches. However, it does not work well in very specific areas. In fact, the results can look very strange.

When content-aware cropping fails

For example, we saw that I was able to easily add more area on top of the balloons in this image, mainly because the area was fairly simple. All Photoshop had to do was figure out how to paint more blue skies and a few wispy clouds, and the result was amazing. But see what happens if you do the same thing at the bottom of the photo, under the woman's dress. I'll click and drag the bottom cropping handle down below the image to add more space:

Drag the bottom of the cropping border to the area below the image. Image © 2016 Steve Patterson, Photoshop Essentials.com

Drag the bottom of the cropping border to the area below the image.

Then I'll release the mouse button, at which point Photoshop temporarily fills the area with empty space, just as it did at the top of the image:

The new area below the image is filled with transparency. Image © 2016 Steve Patterson, Photoshop Essentials.com

The new area below the image is filled with transparency.

Finally, I'll press Enter (Win) / Return (Mac) on my keyboard to accept the crop. And here is where things go wrong. Essentially, you've asked Photoshop to figure out how to draw more of a woman's dress, and that's simply too detailed and too specific for Content-Aware to handle. Photoshop really tried, but all I really did was copy a portion of her dress, along with her hands and part of her arms, and paste it into the new area. Clouds are also spoiled, and in truth, everything is a disaster.

So, keep in mind that content-aware cropping works great with minor, random details. But the more specific you get, the less likely you are to get the results you hoped for:

Example of when to not use Content-Aware Crop in Photoshop CC. Image © 2016 Steve Patterson, Photoshop Essentials.com

Need an extra set of hands? Content-aware cutting to the rescue!
Previous
How to cut an image into a circle using Photoshop
Next
brushes diversity of species