In this tutorial I’ll show you how to create the look of perspective and reflection in your images.

Sample or example images are a common part of web pages. For example, on my home page, I show examples of websites I’ve designed and developed. For each site, I show the image of a screen capture of the site. I wanted it to be completely clear that what I am showing is not part of the page the viewer is looking at but an example of another page. To make this clear, I decided to show the screen capture in perspective and with a reflection under it.
Let me give you an overview of what we're going to do. First we will create a series of guidelines that will show us how to modify our image to make it look like it is in perspective. Then we will take our flat image, duplicate it and flip it vertically. This will give us a flat image with a flat reflection. We will use the free transform tool to distort the image and reflection at the same time. It is important that both are distorted together for the effect to work. This means that our workflow must first create the reflection and then the perspective. We'll finish up by adding some visual effects to make the whole thing look slightly more believable.
The first step is to create an empty Photoshop document. The document should be much larger than the image you're working with. This is necessary to accommodate both the guidelines and the reflection. Start by making your document four times wider and four times taller than the image you will be working with. If you run out of space, just make the canvas bigger by clicking on "Image > Canvas Size," and make your canvas bigger. Start off by making two layers. One layer is for your image and one layer will be for the guidelines to help create the illusion of perspective.

Â
To create the guidelines to help with perspective, click on the Guides layer, so that it you will be drawing on it. Now draw a vertical line on the left side of the canvas. The line tool is found if you click on the rectangle tool. Make sure that you have "Fill Pixels" selected for the drawing mode. You can pick a weight that you feel is appropriate.

Now draw a second line from the bottom of your vertical one out to the right. This second line will go from the bottom left corner of your image to the horizon. The angle at which you draw it will determine whether it will appear that you are looking up, down, or directly at your image. For this example you can basically eyeball things, but if you want to learn how to calculate where to put the vanishing point, horizon, etc. more precisely, take a look at Kevin Hulsey's drawing perspective tutorials. Here's how I drew mine:

We'll add in the image now. If you copy and paste your image into your photoshop document a new layer will be created for your image, which is exactly what we want. Now we have to move the image so that it's bottom left corner is where our two guidelines are. We can use the Free Transform tool to do this (Ctr+T or "Edit > Free Transform"). When you are in free transform mode, you can use your mouse to move your image where you want it. You can fine tune the position of the image with the arrow keys. If you want, experiment with turning Snap on and off ("View > Snap").
Once you have your image positioned, click on the Guides layer and draw a line from the top left corner of the image to the right hand vanishing point. The guidelines extending from the bottom and top left of your image should intersect. Like this:

If the vanishing point is above the top of the image, it'll look like you are viewing things from above. If it's below, it'll look like you are viewing from below. If it's directly to the right of the image, it'll look like you are at the same level as the image.
Finally, we have create a second vertical guide, for the right hand side of the perspective image. This line should be to the left of the edge of the image, since perspective will cause the image to appear narrower. You can figure out precisely where to put this line, but for a simple situation like this, it's easier just to eyeball things. Just imagine taking your image and swiveling it in to perspective and draw the second vertical line where the right hand side of the image would end up:

It's important that we create the mirror image now, since we want to distort the main and mirror image simultaneously, so that the reflection matches the perspective of the main image. To create the reflection, first duplicate the main image. Do this by clicking on the layer with the image and dragging it over the "Create a New Layer" icon, that is at the bottom right of the layers panel.

Name this layer as the mirror image. I usually drag this layer below the main image, since it helps me keep track of things better.

Click on the reflection layer in the layers panel and use the free transform tool to position it directly below the main image. Holding down the shift key while moving the image will constrain it to move in only several directions, so you can be sure you are moving it directly down and that you're not moving slightly off of vertical. If you want it to appear the the image is sitting directly on a reflective surface, leave no gap between the main image and reflection. I chose to introduce a small gap between the main image and reflection. This makes it appear that the main image is floating slightly.
Before you finalize the free transform, right click directly on the reflection and pick "Flip Vertical" from the fly out menu that appears. Now we have a true reflection.

and voila:
This is the point at which you may notice that you are running out of space. Increase the size of your canvas to add more space at the bottom if necessary.
To create the effect of perspective, we have to work with the main image and reflection at the same time. To do this click in the layers panel on the layer of the main image. Now shift + click on the layer of the reflection. Both layers should be highlighted:

If you now use the free transform tool (Ctr+T), both images should be selected. Look at how the bounding boxes goes around both images:

Ctr + Click on the top right corner and drag it the top right corner of your perspective guidelines. You want to distort the image and not just resize them; that's why you have to Ctr + Click for this operation and not just click.

This next step is probably the trickiest one of this tutorial. You have to control click on the bottom right corner of the bounding box... that's is the bottom right corner of the reflection. By dragging this corner you have to get the bottom right corner of the main image to lie over the bottom right corner of the guiding lines. So you're ctr + dragging the bottom right of the bounding box but looking at the center right of it.

We'll begin to add finishing touches. First let's change the background to pure black, or any color of your choosing. To do this click on the guides layer and then on the "Create a New Layer" icon at the bottom right of the layers panel. This will create a new panel directly below the image and reflection layers. To fill with a solid color click Alt + Backspace to fill it with the foreground color or Ctr + Backspace to fill it with the back ground color. You can also go to Edit > Fill.

To make the reflection fade out from top to bottom we'll use a layer mask. A layer mask interacts with a layer to show only certain parts of that layer. Think of it as a black piece of paper that you can cut to any shape you want and lay it over the layer you're working with. In the areas where a layer mask is black, the layer becomes invisible. In areas where the layer mask is white, the layer is unchanged. If the layer mask is a shade of gray, then the layer is partially visible.
To add our layer mask, first click on the layer with the reflection to select it in the layer panel. Now click on the "Create Layer Mask" icon. This is toward the bottom left of the layers panel. It looks like a square with a circle inside
 . This will give you a layer mask associated with the reflection.

Click on the white square that is the layer mask, so that you can edit it directly. We will add a gradient to it. Make sure your foreground color is white and your background color is black. If they are not, just click on the small black and white boxes up and to the left of the foreground and background colors. To select the gradient tool hit Ctr+G or select it from the tool menu on the left. Things should look like this:

The look we want to achieve is for the reflection to fade away from top to bottom. Remember that the areas where the layer mask is black will make the reflection disappear, so we want to click on the image and draw the gradient line from the bottom right to the top left. This will make the layer mask blacker toward the bottom right and whiter toward the top left. Try making your gradient. If you are not satisfied with the results hit Ctr+Z to undo it and try it again. The results should look something like this:

Even if the background of your image is another color, you will use a black to white gradient for your layer mask. This is because a layer mask makes the layer it is associated with visible with white and invisible with black. So even if the background of your image is red, your reflection will be visible over the red background if your layer mask is white and invisible if your layer mask is black.
After adding the gradient, your layer mask will look something like this:

To make the reflection a little more convincing, decrease the Opacity of the reflection layer. Make sure that the reflection layer is selected in they Layers panel. Now use the slider bar at the top right of the panel to change the opacity of the reflection layer. I've found 50% to look nice.
To finish the image, turn off the background color and guides layer. Select "Image > Trim..." and click Based on Transparent Pixels and Top, Right, Left, and Bottom. This will trim away all the excess canvas. To add back a slight border use "Image > Canvas Size..." and select Relative. With Relative selected you only have to type in the twice the thickness of the border you want width and height wise.

Once done with resizing turn the background color layer back on by clicking on the eyeball icon to the left of it, and you're done!

I've found Mark Galer's books very useful for honing my Photoshop skills:
Tags: design, perspective, Photoshop, reflection, tutorial






extremely helpful tutorial was for me, specially the perspective part
and im new too, so im facing this annoying problem>>
when i put my gradient on the mask layer, it’s not completely black it shows a Lil bit of Wat’s behind, that’s even my gradient mode is set to normal (if it would affect), so else can i check,,,
tnx for sharing
Hi Jenjer,
I’m not exactly sure what you mean, but when you use a mask, the areas that are black in the mask will show the layers underneath, while the areas that are white will show the layer with the mask. Areas that are shades of gray (like you create with a gradient) will show some of the layer with the mask and some of the layers below.
I suggest that you click on your mask and paint on it in black and white with your brush. Watch what affect this has on the image as a whole. This is a good way to get an organic feel for how the mask works. Then apply the gradient.
i think the key is that, black on you mask will not show up as black in the image. Black on your mask will show the layers below the layer with the mask.
Hope this helps and good luck
When I create a new document, it creates a background layer. Why do you not even mention this? This is very confusing.
Hi Jason,
Sounds like you opened a JPEG file or other existing image file with Photoshop. When you do this, Photoshop automatically turns the image you opened into a locked background layer.
There are two ways to deal with this. The first is to unlock the background layer and make it editable. The easiest way is to just double click on the locked layer. Now, type in a new name for the layer or just hit enter to except the default Layer 0. This will allow you to edit this layer.
If you would rather keep the original layer as a backup, then duplicate the background layer by hitting Ctr+J. Now you can edit your new duplicate layer, but you also have a backup of the original to fall back on. Just click on the eyeball next to the original back up to make it invisible as you work on your new editable layer.
When you create a new document using File > New… an empty layer is created by default. This is because even an empty document has to have an layer in it that describes the size (width and height) of the document.
By the way, the reason I didn’t mention this in the tutorial is because I opened a new Photoshop file by using File > New… This will not create a locked background layer. It will create an empty editable layer. Then I pasted in the image I was working with.
Good luck, hope this helped.
This is by far the best tutorial on mirror effects that I have seen. Congrats on being thorough. The only problem I had was with the line tool, of all things. Each guide line created a new layer, but I simple merged them after the fact.
Thanks again and best.
This is good post. Thank you very much for the great article provided! I was looking for this information for quite some time, but I wasn’t able to find a dependable website.
Hello, I found this post while searching for help with JavaScript. I have recently switched browsers from Google Chrome to Firefox 3.2. Now I seem to have a problem with loading JavaScript. Every time I browse site that requires Javascript, my browser does not load and I get a “runtime error javascript.JSException: Unknown name”. I can’t seem to find out how to fix it. Any help is very appreciated! Thanks