Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Add a Border and Drop Shadow to a Photo in Photoshop

Create an adjustable photo border in Photoshop with Canvas Size and a Solid Color layer, then add and customize a nondestructive Drop Shadow layer style.

Table of Contents

To create a clean photo border in Photoshop, place a Solid Color fill layer below the image, expand the canvas evenly, and apply a Drop Shadow layer style to the image layer. Keeping the border and shadow editable makes it easy to change their color, size, softness, and opacity later.

Step 1: Open the image in Photoshop

Start by opening your image. For example, we'll use this image from the example photo:

How to create a shadow border in Photoshop Picture 1

Step 2: Unlock the Background layer

In the Layers panel, the image appears on the Background layer. At this point, the Background layer is locked, indicated by the lock icon to the right of the layer name.

How to create a shadow border in Photoshop Picture 2

To add a border around the image, we need to add a new layer below the image. But we can't do that when the Background layer is locked. So, to unlock it, click the lock icon.

Alternatively, if you're using an older version of Photoshop and clicking the lock icon doesn't work, press and hold the Alt (Win) / Option (Mac) key on your keyboard and double-click the lock icon:

How to create a shadow border in Photoshop Picture 3

Photoshop renamed the layer from Background to Layer 0 and the lock icon disappeared:

How to create a shadow border in Photoshop Picture 4

Step 3: Add a Solid Color fill layer

To create an image border, we will use a Solid Color fill layer.

Click the New Fill or Adjustment Layer icon  at the bottom of the Layers panel:

How to create a shadow border in Photoshop Picture 5

And select Solid Color from the list:

How to create a shadow border in Photoshop Picture 6

Next, in the Color Picker, select white by setting the R, G, and B values ​​to 255. We'll use white as the border color for now and will show you how to change it later. Click OK when you're finished.

How to create a shadow border in Photoshop Picture 7

Back in the document, the white from the fill layer is temporarily blocking the image from view:

How to create a shadow border in Photoshop Picture 8

Step 4: Move the fill layer below the image

To fix that, click on the Solid Color fill layer in the Layers panel and drag it below the image:

How to create a shadow border in Photoshop Picture 9

Release the mouse button to drop it into the correct position:

How to create a shadow border in Photoshop Picture 10

And now, let's go back to look at the image, with the fill layer hidden behind it:

How to create a shadow border in Photoshop Picture 11

Step 5: Open the Canvas Size dialog box

Next, we need to add more canvas space around the image. This extra space will become the border. And since we want the border to be the same size on all four sides, the best way to do this is to use Photoshop's Canvas Size command.

Go to the Image menu in the Menu Bar and select Canvas Size.

How to create a shadow border in Photoshop Picture 12

Step 6: Increase the canvas width and height

In the Canvas Size dialog box, click the Relative option. This option tells Photoshop to start with the current canvas size, and the values ​​we entered for Width and Height will be added to it.

In the Anchor grid, make sure the center box is selected so that the additional spacing will be added evenly at the top, bottom, left, and right:

How to create a shadow border in Photoshop Picture 13

Next, enter the border dimensions into the Width and Height fields. Remember that the values ​​you enter will be divided equally between the two sides. So, for example, entering 2 inches for Width will create a 1-inch border on the left and right sides of the image. And entering 2 inches for Height will create a 1-inch border at the top and bottom.

For the example image, a 1-inch border would be a bit wide. A 3/4-inch border would look better. So, to add a 3/4-inch border to the left and right of the image, you need to set the Width to double that amount, i.e., 1.5 inches. And to keep the border size consistent everywhere, the Height should also be set to 1.5 inches.

Click OK when you're finished to close the Canvas Size dialog box.

How to create a shadow border in Photoshop Picture 14

Photoshop adds extra canvas space around the image, creating an image border. Although this extra space is actually transparent, it appears white because the Solid Color fill layer beneath the image is showing through.

How to create a shadow border in Photoshop Picture 15

How to adjust the image border on the screen.

If the bordered image is too large to fit the screen, go to the View menu in the Menu Bar and select Fit on Screen.

How to create a shadow border in Photoshop Picture 16

How to change the border size

The drawback of Photoshop's Canvas Size command is that there's no way to preview the new size before accepting it. So, if the border is too wide or too narrow, go to the Edit menu and select Undo Canvas Size.

How to create a shadow border in Photoshop Picture 17

Then, go back to the Image menu, go back to Canvas Size, and try again with different Width and Height values :

How to create a shadow border in Photoshop Picture 18

Step 7: Select the image layer

We've added the image border, now we need to add a shadow. In the Layers panel, click on the image layer to select it:

How to create a shadow border in Photoshop Picture 19

Step 8: Add shadow effects

Then click on the fx icon at the bottom:

How to create a shadow border in Photoshop Picture 20

And select Drop Shadow from the list:

How to create a shadow border in Photoshop Picture 21

Step 9: Adjust Drop Shadow settings

The options for Drop Shadow are opened in Photoshop's Layer Style dialog box. The three main options are Angle, Distance, and Size. Angle controls the direction of the light source, Distance is the distance the shadow extends from the object, and Size controls the smoothness of the shadow edges.

How to create a shadow border in Photoshop Picture 22

Angle and Distance options

The quickest way to set the Angle and Distance of a shadow is to simply click inside the document, hold down the mouse button, and drag the shadow to position it. As you drag, the Angle and Distance values ​​in the dialog box will change.

Here, for example, we're dragging the shadow downwards and to the right:

How to create a shadow border in Photoshop Picture 23

Alternatively, you can enter specific Angle and Distance values. For example, setting Angle to 135 degrees and Distance to 80 px. The values ​​you need, especially Distance and Size, will depend on your image:

How to create a shadow border in Photoshop Picture 24

Here are the results so far:

How to create a shadow border in Photoshop Picture 25

Size Options

Then increase the Size value to soften the shadow edges. For example, setting the value to 60 px would be helpful, but again, this will depend on your image:

How to create a shadow border in Photoshop Picture 26

And here's the result, with the edges now softer:

How to create a shadow border in Photoshop Picture 27

Opacity option

You can also adjust the intensity of the shadow using the Opacity slider. Higher Opacity values ​​will darken the shadow, and lower values ​​will lighten it. For example, lowering the value to 30% would be:

How to create a shadow border in Photoshop Picture 28

When you are satisfied with the result, click OK to close the Layer Style dialog box.

How to create a shadow border in Photoshop Picture 29

Here is the result after reducing the shadow opacity:

How to create a shadow border in Photoshop Picture 30

How to customize border and shadow colors

At this point, the main effect is complete. We've added a border around the image and a shadow behind it. But instead of using a white border and a black shadow, we can customize the effect by selecting colors directly from the image. Here's how to do it.

Step 10: Open the fill layer's color swatch

To change the border color, double-click the fill layer's color swatch in the Layers panel:

How to create a shadow border in Photoshop Picture 31

Step 11: Sample a border color from the image

This will reopen the Color Picker. But instead of selecting a new color from the Color Picker itself, move your mouse cursor over the image and click on a color to sample it.

For example, you would click on the woman's shoulder:

How to create a shadow border in Photoshop Picture 32

The color you sample immediately becomes the new border color. You can continue clicking on different areas of the image to find the best match. When finished, click OK to close the Color Picker.

This is the result with the border set to the new color:

How to create a shadow border in Photoshop Picture 33

Step 12: Reopen Drop Shadow settings

Next, to choose a new color for the drop shadow, double-click the Drop Shadow layer effect below the image layer:

How to create a shadow border in Photoshop Picture 34

And in the Layer Style dialog box, click on the color swatch of the shadow:

How to create a shadow border in Photoshop Picture 35

Step 13: Sample a shadow color from the image

When the Color Picker opens, move your mouse cursor over the image and click on a color to sample it. For example, clicking on the woman's shoulder would be:

How to create a shadow border in Photoshop Picture 36

Step 14: Adjust the shadow color

A realistic shadow is usually darker and less conspicuous than the nearby image colors. Adjust brightness and saturation while watching the preview; there is no universal percentage because the appropriate setting depends on the photo and the intended style.

How to create a shadow border in Photoshop Picture 37

Click OK to close the Color Picker and you're done! This is the final result with a custom border and shadow color:

How to create a shadow border in Photoshop Picture 38

Video: Create a shadow border in Photoshop

Save an editable copy

Save a layered PSD before exporting the finished image. The layered file preserves the Solid Color fill and Drop Shadow settings, while a separate JPEG or PNG is suitable for sharing.

For more layer-management help, see basic Photoshop layer operations. The guide to splitting photos in Photoshop demonstrates another border-and-shadow composition.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.