Fill a Shape with a Photo in Photoshop 2021
Learn how easy it is to draw a shape and place an image inside it with Photoshop! A step-by-step tutorial for Photoshop 2021.
In this tutorial, I show you how to fill a shape with an image using Photoshop! As we'll see, it's easy to place a photo into any kind of shape, from a basic rectangle or circle to a fancy custom shape. For this tutorial, we'll use a custom shape, and I'll show you how to load all of the shapes included with Photoshop so you'll have lots to choose from.
Here's an example of what the final
image in shape effect will look like. Along with placing the image into the shape, I'll also show you how to change the background color and how to outline the shape with a stroke:
image in shapeeffect.
Let's get started!
Step 1: Create a new document
Start by creating a new Photoshop document. Go up to the File menu in the Menu Bar and choose New:
Or if you're on Photoshop's Home Screen, click the Create New button:
Either way opens the New Document dialog box. Enter the settings you need for your document in the Preset Details panel along the right.
For this tutorial, let's create a square-shaped document. I'll set the Width and Height to 2000 pixels. Leave the Resolution value set to the default of 300 pixels/inch, and set the Background Contents to White:
Then click the Create button, and the new document appears on the screen:
Step 2: Select the Custom Shape Tool
As I mentioned earlier, you can place an image into any kind of shape, from a simple rectangle or circle to a fancy custom shape. For this tutorial, we'll use one of Photoshop's built-in custom shapes, and I'll show you where to find more shapes than the ones Photoshop loads by default.
In the Toolbar, select the Custom Shape Tool which may be hiding behind the Rectangle Tool or one of Photoshop's other shape tools. If it is, right-click (Win) / Control-click (Mac) on whichever shape tool is visible and choose the Custom Shape Tool from the menu:
Step 3: Set the Tool Mode to Shape
In the Options Bar, make sure the Tool Mode is set to Shape, not Path or Pixels. This will let us draw a vector shape, which can be scaled to any size we need with no loss in quality:
Step 4: Set the shape color to black
Still in the Options Bar, set the shape's Fill color to black. The color doesn't really matter since we'll be filling the shape with an image. But for now, black will make it easy to see the shape in front of the white background.
Black is the default shape color, but if yours is set to something different, click the Fill color swatch:
In the Fill Type dialog box, click the Solid Color option at the top (second icon from the left). Then twirl open the Grayscale folder and click on the black color swatch to select it. Press Enter (Win) / Return (Mac) on your keyboard to close the dialog:
We also don't need a stroke around the shape (we can add one later), so click the Stroke color swatch:
And in the Fill Type dialog box, choose the No Color option (first icon from the left). Then press Enter (Win) / Return (Mac) to close it:
Step 5: Open the Shapes panel
In earlier Photoshop versions, we would select a custom shape from the Options Bar. But as of Photoshop 2020, the best place to select and draw custom shapes is from the Shapes panel.
Open the Shapes panel by going up to the Window menu in the Menu Bar and choosing Shapes. If a checkmark appears next to the name, it means the panel is already open and selecting it from the Window menu will close it:
Step 6: Load more custom shapes
In the Shapes panel, the custom shapes are divided into groups, with each group represented by a folder. If you have not yet loaded more shapes, you'll be limited to the four default groups (Leaf Trees, Wild Animals, Boats and Flowers).
Twirl a group open (by clicking the arrow next to its folder icon) to view thumbnails of the shapes inside it:
To load more shapes included with Photoshop (and there are lots more), click the Shapes panel menu icon:
And choose Legacy Shapes and More from the menu:
Legacy Shapes and More.
A new Legacy Shapes and More group appears below the default groups:
And if you twirl the group open, you'll find two more groups. 2019 Shapes includes hundreds of new custom shapes that were added in Photoshop 2020, and All Legacy Default Shapes holds all of the classic shapes from earlier Photoshop versions:
Step 7: Select a shape
You can choose any of the available shapes. But I'm looking for the classic Butterfly shape from earlier versions. So I'll twirl open the All Legacy Default Shapes folder and I'll scroll down to the Nature folder:
Then inside the Nature folder, I'll click on the Butterfly shape's thumbnail to select it:
Step 8: Drag and drop the shape into the document
The easiest way to draw a shape is to simply drag and drop it from Shapes panel into your document:
Release your mouse button and the shape appears:
Step 9: Resize and center the shape
Resize the shape by dragging any of the transform handles. The shape will scale proportionally, but if you want to scale it non-proportionally, hold Shift as you drag:
Then click inside the transform box and drag the shape into the center of the document. If you have Smart Guides turned on (which they are by default), a vertical and horizontal Smart Guide will appear when the shape is centered:
To accept it and close the transform box, click the checkmark in the Options Bar:
In the Layers panel, the shape appears on its own shape layer above the Background layer. And the icon in the layer's preview thumbnail tells us that it's a shape:
Step 10: Open your image
With our shape drawn, we're ready to place an image inside it. But first, we need to open the image into Photoshop.
Go up to the File menu in the Menu Bar and choose Open:
Then navigate to the image on your computer, click on it to select it, and click Open:
The image opens in its own separate document. I'm using this image from Adobe Stock:
Step 11: Select and copy the image
We'll copy the image from its document and paste it into the shape's document.
First, select the image by going up to the Select menu and choosing All. A selection outline appears around it:
Then copy it by going up to the Edit menu and choosing Copy:
Step 12: Paste the image into the shape's document
Switch over to the shape's document by clicking its tab just below the Options Bar:
Then go back up to the Edit menu and choose Paste:
Photoshop pastes the image into the document. But there's a couple of problems. One is that the image is too big, and the other is that the image is blocking the shape from view:
Step 13: Create a clipping mask
In the Layers panel, we see that the reason the image is blocking the shape is because Photoshop placed it on a new layer above the shape layer:
To place the image into the shape, all we need to do is create a clipping mask. With the image layer (
Layer 1) selected, click on the Layers panel menu icon:
And choose Create Clipping Mask from the list:
clips the image to the shape below it, and now the only part of the image that remains visible is the area in front of the shape. Everything outside the shape is hidden from view:
Back in the Layers panel, notice that the image layer is now indented to the right, with a small arrow pointing down at the shape layer below it. This is how Photoshop lets us know that the image is clipped to the shape:
Step 14: Select Free Transform
To resize and reposition the image inside the shape, go up to the Edit menu and choose Free Transform:
The Free Transform box and handles appear around the actual boundaries of your image, including the areas outside the visible canvas. If you can't see the handles because your image is too big to fit on the screen, go up to the View menu and choose Fit on Screen:
Photoshop automatically adjusts the zoom level so everything fits, including the Free Transform box which in my case extends into the grey pasteboard area to the right of the canvas:
Step 15: Resize and reposition the image
Drag any of the handles to resize the shape within the image. Here I'm dragging the right side handle inward:
Then move the image within the shape by dragging inside the transform box. You'll most likely need to go back and forth between resizing and moving the image until you get it just right:
To accept it and close Free Transform, click the checkmark in the Options Bar:
And here's my result. If you're happy with the white background, you can stop here. But up next, I'll quickly show you how to change the background color to something better:
Step 16: Add a Solid Color fil layer
To change the background behind the shape to a color other than white, we'll use a Solid Color fill layer.
We want the fill layer to appear above the Background layer but below the shape. So first, in the Layers panel, click on the Background layer to make it active:
Then click the New Fill or Adjustment Layer icon:
And choose a Solid Color fill layer from the top of the list:
Step 17: Choose a new background color
Photoshop pops open the Color Picker where we can chose a new color. Black is the default color, so let's see what that looks like:
Black definitely brings out the details of the shape. But as the background color for a butterfly, I'm not sure it works:
You can choose a different color from the Color Picker, but you can also sample a color directly from the image inside the shape.
Just move your mouse cursor over the color you want to sample. Your cursor will temporarily switch to the Eyedropper Tool icon, letting you know it's ready to sample a color. To keep the background color subtle, I'll choose a light skin tone from the girl's forehead:
As soon as you click, the sampled color becomes the new background color. Once you've found a color you like, click OK to close the Color Picker:
And in the Layers panel, the Solid Color fill layer appears exactly where we needed it, between the Background layer and the shape:
Step 18: Add a stroke around the shape
Finally, let's finish off the effect by adding a stroke around the shape. And for that, we'll use a layer effect.
Click on the shape layer in the Layers panel to select it:
Then click the fx icon:
And choose Stroke from the list:
Photoshop opens the Layer Style dialog box with the Stroke options in the middle column. To change the stroke's color, click the color swatch:
Then choose a new color from the Color Picker. I'll choose white by setting the R, G and B values to 255. Click OK when you're done to close it:
Finally, back in the Layer Style dialog box, set the Position to Outside so that the stroke appears around the outside of the shape. Then increase the Size value to adjust the thickness of the stroke. For my image, a size of around 24 px works well:
Click OK to close out of the Layer Style dialog box, and we're done! Here, after changing the background color and adding a stroke around the butterfly, is my final
image in shape effect:
And there we have it! That's how easy it is to place an image in a shape with Photoshop! Check out my Photo Effects section for more Photoshop effects tutorials! And don't forget, all of my Photoshop tutorials are now available to download as PDFs!