Learn how easy it is to place an image into a shape with Photoshop! A step-by-step tutorial for Photoshop 2021.
Written by Steve Patterson.
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.
To follow along, you’ll want to be using Photoshop 2021, although 2020 will still work. But for Photoshop 2019 or earlier, check out the original version of this tutorial.
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:
The final image in shape
effect.
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:
Going to File & New.
Or if you’re on Photoshop’s Home Screen, click the Create New button:
Clicking 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:
The new document settings.
Then click the Create button, and the new document appears on the screen:
Clicking the Create button.
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:
Selecting the Custom Shape Tool from the Toolbar.
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:
Setting the Tool Mode to Shape.
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:
Clicking the Fill color swatch in the Options Bar.
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:
Choosing black as the fill color for the shape.
We also don’t need a stroke around the shape (we can add one later), so click the Stroke color swatch:
Clicking the Stroke color swatch in the Options Bar.
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:
Setting the stroke to No Color.
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:
Going to Window > Shapes.
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:
The four default shape groups in the Shapes panel.
To load more shapes included with Photoshop (and there are lots more), click the Shapes panel menu icon:
The four default shape groups in the Shapes panel.
And choose Legacy Shapes and More from the menu:
Choosing Legacy Shapes and More
.
A new Legacy Shapes and More group appears below the default groups:
The new Legacy Shapes and More group.
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:
The 2019 Shapes and All Legacy Default Shapes groups.
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:
Selecting the Nature group inside the All Legacy Default Shapes folder.
Then inside the Nature folder, I’ll click on the Butterfly shape’s thumbnail to select it:
Selecting the Butterfly custom shape.
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:
Dragging and dropping the shape into the Photoshop document.
Release your mouse button and the shape appears:
The shape is drawn when you release your mouse button.
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:
Dragging the side transform handles outward.
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:
Centering the shape.
To accept it and close the transform box, click the checkmark in the Options Bar:
Clicking the checkmark.
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:
The new shape layer.
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:
Going to File > Open.
Then navigate to the image on your computer, click on it to select it, and click Open:
Selecting and opening the image.
The image opens in its own separate document. I’m using this image from Adobe Stock:
The image I’ll be placing inside the shape. Credit: 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:
Going to Select > All.
Then copy it by going up to the Edit menu and choosing Copy:
Going to Edit > 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:
Clicking the shape document’s tab.
Then go back up to the Edit menu and choose Paste:
Going to Edit > 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:
The result after pasting the image into the shape document.
Related: Five ways to move images between Photoshop documents
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:
The image is added 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:
Clicking the menu icon.
And choose Create Clipping Mask from the list:
Clicking the menu icon.
This 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:
The clipping mask placed the image inside the shape.
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:
The Layers panel showing the clipping mask.
Step 14: Select Free Transform
To resize and reposition the image inside the shape, go up to the Edit menu and choose Free Transform:
Going to Edit > 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:
Going to View > 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:
All of the transform handles are now visible.
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:
Scaling the image by dragging the transform handles.
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:
Moving the image by dragging inside the transform box.
To accept it and close Free Transform, click the checkmark in the Options Bar:
Clicking the checkmark.
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:
The initial result.
See also: How to place an image in text!
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:
Selecting the Background layer.
Then click the New Fill or Adjustment Layer icon:
Clicking the New Fill or Adjustment Layer icon.
And choose a Solid Color fill layer from the top of the list:
Adding a Solid Color fill layer.
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:
Choosing black from the Color Picker.
Black definitely brings out the details of the shape. But as the background color for a butterfly, I’m not sure it works:
The result after changing the background color to black.
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:
Sampling a new background color from the image.
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:
The sampled color is now the background color.
And in the Layers panel, the Solid Color fill layer appears exactly where we needed it, between the Background layer and the shape:
The new Solid Color fill layer.
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:
Selecting the Shape layer.
Then click the fx icon:
Clicking the layer effects icon.
And choose Stroke from the list:
Choosing a Stroke layer effect.
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:
Clicking 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:
Choosing white from the Color Picker.
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:
Setting Position to Outside and the Size to 12 px.
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:
The final result.
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!
Source: PhotoshopEssentials