Clipping Masks And Type – Placing An Image In Text With Photoshop


Clipping Masks And Type – Placing An Image In Text With Photoshop
Written by Steve Patterson. In a previous tutorial, we learned the basics and essentials of using clipping masks in Photoshop to hide unwanted parts of a layer from view in our designs and documents. We learned that clipping masks use the content and transparent areas of the bottom layer to determine which parts of the layer above it remain visible, and as a real world example, we used a clipping mask to place one image into a photo frame that was inside a second image.
In that tutorial, we focused mainly on using clipping masks with pixel-based layers, but another common use for them is with type. Specifically, they can be used to easilyplace a photo inside of text! As we’ll see in this tutorial, Type layers in Photoshop are different from pixel-based layers in that there are no actual “transparent” areas on a Type layer. The type itself simply becomes the layer’s contents. When we use a clipping mask with a Type layer, any part of the image on the layer above that sits directly over top of the text remains visible in the document, while areas of the image that fall outside the text are hidden. This creates the illusion that the image is actually inside the text! Let’s see how it works.
As with the previous tutorial, I’ll be using Photoshop CS6 here but everything we’ll cover applies to any recent version of Photoshop.
Download our tutorials as print-ready PDFs! Learning Photoshop has never been easier!
Here’s a document I have open containing two images. The first photo on the bottom Background layer will be used as the main image for the project (friends enjoying snowfall photo from Shutterstock):
Two happy young female friends enjoying snowfall on Christmas winter night over snow background. Image licensed from Shutterstock by Photoshop Essentials.comThe main image that will be used as the background.And if I turn on the top layer by clicking on its visibility icon in the Layers panel:Clicking on the layer visibility icon for the top layer in the Layers panel. Image © 2012 Photoshop Essentials.comClicking the layer visibility (“eyeball”) icon for the top layer.We see the image I’m going to be placing inside of some text (abstract winter background from Shutterstock):An abstract winter background. Image licensed from Shutterstock by Photoshop Essentials.comThe image that will be going inside the text.Let’s go ahead and add the text to the document. First, I want my text to appear in front of the other images for now (so I can see what I’m doing) so before I add any text, I’ll click on the top layer in the Layers panel to select it and make it active:Selecting the top layer in the Layers panel. Image © 2012 Photoshop Essentials.comSelecting the top layer.With the top layer selected, I’ll add my text. If you’re looking for more information on working with type in Photoshop, be sure to check out our full Photoshop Type Essentials tutorial, the first of several tutorials covering everything you need to know. Here, I’ll start by grabbing the Type Tool from the Tools panel:Selecting the Type Tool in Photoshop. Image © 2012 Photoshop Essentials.comSelecting the Type Tool.With the Type Tool selected, I’ll choose my font up in the Options Bar along the top of the screen. When you know you’re going to be placing an image inside your text, you’ll usually want to choose a font with thick letters so you’ll be able to see more of the image. I’ll choose Impact since it’s a nice thick font, and I’ll set the initial size of my font to 24pt. Don’t worry about choosing a color for the text because the color won’t be visible once we’ve added the image:The font options in the Options Bar in Photoshop. Image © 2012 Photoshop Essentials.comSelecting the font options in the Options Bar.With my font details chosen, I’ll click inside the document with the Type Tool to begin adding my text. I’ll type the words “Happy Holidays”:Adding text to the document with the Type Tool. Image © 2012 Photoshop Essentials.comAdding the type to the document.When you’re done, click the checkmark in the Options Bar to accept the type and exit out of text editing mode:Clicking the checkmark to accept the text. Image © 2012 Photoshop Essentials.comClicking the checkmark in the Options Bar.If we look in the Layers panel, we see the new Type layer that’s been placed above the other two layers. Photoshop places new Type layers directly above whatever layer was previously active which is why I first clicked on Layer 1 to select it before adding the text:The Layers panel showing the newly added Type layer. Image © 2012 Photoshop Essentials.comThe Layers panel showing the new Type layer.Unfortunately, the font size I chose in the Options Bar was too small for my design, but that’s okay because there’s an easy way to resize the text. We’ll just use Photoshop’s Free Transform command. I’ll select it by going up to the Edit menu in the Menu Bar along the top of the screen and choosing Free Transform. Or, I could press Ctrl+T(Win) / Command+T (Mac) on my keyboard to select Free Transform with the shortcut. Either way is fine:Selecting the Free Transform command in Photoshop. Image © 2012 Photoshop Essentials.comGoing to Edit > Free Transform.This places the Free Transform box and handles (little squares) around the type. To resize the type, I’ll simply click and drag the corner handles outward to make the text as large as I need it. I’ll also hold down my Shift key as I’m dragging the handles to keep the original shape of the letters intact as I’m resizing them. When you’re done, pressEnter (Win) / Return (Mac) on your keyboard to accept the transformation and exit out of the Free Transform command:Resizing the text with Free Transform in Photoshop. Image © 2012 Photoshop Essentials.comHolding Shift and dragging the corner handles to resize the text.Now that the type is the size we need, let’s go ahead and add our clipping mask to place the image inside the text. The image I want to place inside my text is on Layer 1, but Layer 1 is currently sitting below my Type layer and as we learned in the Clipping Masks Essentials tutorial, we need the layer that’s going to serve as the clipping mask (in this case, the Type layer) to be below the layer that’s going to be “clipped” (Layer 1). This means I’ll first need to move my Type layer below Layer 1.To move the Type layer, I’ll click on it in the Layers panel and with my mouse button held down, I’ll begin dragging the layer downward until I see a horizontal highlight bar appear between Layer 1 and the Background layer:Moving the Type layer below Layer 1 in the Layers panel. Image © 2012 Photoshop Essentials.comDragging the Type layer below Layer 1.When the highlight bar appears, I’ll release my mouse button and the Type layer is moved right where I need it directly below Layer 1:The Type layer has been moved below the image layer. Image © 2012 Photoshop Essentials.comLayer 1 now sits above the Type layer.Next, we need to make sure we have the layer that’s going to be “clipped” by the clipping mask selected, so I’ll select Layer 1:Selecting the layer that's going to be clipped by the clipping mask. Image © 2012 Photoshop Essentials.comSelecting the image layer above the Type layer.With the Type layer now directly below the image and the image layer selected, I’ll add the clipping mask by going up to the Layer menu at the top of the screen and choosing Create Clipping Mask:Selecting the Create Clipping Mask command from the Layer menu in Photoshop. Image © 2012 Photoshop Essentials.comGoing to Layer > Create Clipping Mask.If we look again in the Layers panel, we see that Layer 1 is now indented to the right, with a small arrow to the left of its preview thumbnail pointing down at the Type layer below it. This tells us that Layer 1 is now being clipped by the Type layer:The Layers panel showing the clipping mask. Image © 2012 Photoshop Essentials.comThe Layers panel showing the clipping mask.And if we look in the document window, we see that the image on Layer 1 now appears to be inside the text! It’s notreally inside the text. It only looks that way because any part of the image that is not sitting directly above the type is being hidden from view thanks to the clipping mask:The document window showing the image clipped inside the text. Image © 2012 Photoshop Essentials.comPhotoshop is now hiding any part of the image that is not sitting directly above the type.Of course, I picked a pretty bad spot to place my text. It’s blocking the faces of the two people in the photo so I’ll need to move the text into position. First, I’ll select the Type layer in the Layers panel:Selecting the Type layer in the Layers panel. Image © 2012 Photoshop Essentials.comClicking on the Type layer to select it.Then I’ll grab Photoshop’s Move Tool from the top of the Tools panel:Selecting the Move Tool from the Tools panel in Photoshop. Image © 2012 Photoshop Essentials.comSelecting the Move Tool.With the Type layer selected and the Move Tool in hand, I’ll simply click on the text in the document and drag it up above the two people in the photo. Even though the text is moving, the image inside the text remains in place. It doesn’t move at all. So with the text now higher up in the document, we see a different part of the image inside the text. The text and the image inside it can actually be moved independently of each other, so if I wanted to, I could also select the image layer (Layer 1) in the Layers panel and, with the Move Tool still in hand, drag the image around inside the text to reposition it. This would move the image while the text remained in place:Moving the text higher up in the document. Image © 2012 Photoshop Essentials.comUse the Move Tool to move the text, or the image inside the text (depending on which layer is selected in the Layers panel).
Even though the Type layer is being used as a clipping mask, it’s still officially type, which means it remains fully editable even with the image appearing inside of it. If you suddenly realized you made a spelling mistake, simply select the Type Tool, highlight the mistake by clicking and dragging over it, type the correction and then click the checkmark in the Options Bar to accept it. Or, if you don’t like the font you chose initially, again select the Type Tool, click on the Type layer in the Layers panel to make it active, then choose a different font from the Options Bar (you may need to use Free Transform again to resize the type if you change fonts). Again, I cover all of these things and more beginning with our Photoshop Type Essentials tutorial.
Also since the type is still type, that means you can even warp it into different shapes! First make sure you have the Type layer selected in the Layers panel, then go up to the Edit menu at the top of the screen, choose Transform, and then choose Warp:
Choosing the Transform Warp command from the Edit menu in Photoshop. Image © 2012 Photoshop Essentials.comGoing to Edit > Transform > Warp.With the Warp command selected, look up near the far left of the Options Bar at the top of the screen and you’ll see a Warp option that by default is set to None:The Warp option in the Options Bar in Photoshop. Image © 2012 Photoshop Essentials.comThe Warp option in the Options Bar.Clicking on the word None opens a drop-down list of several preset warp styles to choose from. As an example, I’ll choose one of the more popular styles – Wave:Selecting the Wave warp option in Photoshop. Image © 2012 Photoshop Essentials.comChoosing Wave from the list of preset warp styles.This instantly warps the text into a fun “wave” shape, yet the clipping mask remains active with the image still appearing inside the text. Anything you can normally do with type in Photoshop, you can do with it even when it’s being used as a clipping mask:The text has been warped using the Warp command in Photoshop. Image © 2012 Photoshop Essentials.comThe text after applying the Warp command.We also learned in the Clipping Masks Essentials tutorial that we can add layer styles to clipping masks, and that’s true even when using type. To quickly finish things off, I’ll add a layer style to the text to help it blend in better with the main photo behind it. First, I’ll select the Type layer in the Layers panel:Selecting the Type layer in the Layers panel. Image © 2012 Photoshop Essentials.comSelecting the Type layer.Then I’ll click on the Layer Styles icon at the bottom of the Layers panel:Clicking the Layer Styles icon in the Layers panel in Photoshop. Image © 2012 Photoshop Essentials.comClicking the Layer Styles icon.I’ll choose Outer Glow from the list of layer styles that appears:Choosing an Outer Glow layer style. Image © 2012 Photoshop Essentials.comChoosing an Outer Glow style.This opens Photoshop’s Layer Style dialog box set to the Outer Glow options in the middle column. I’ll change the color of my outer glow to white by clicking on the color swatch and choosing white from the Color Picker that appears. Then I’ll lower the Opacity of the glow to 30% and I’ll increase the glow’s Size to around 32px. Of course, these are just settings that work well with my image here and are only meant to be an example of how we can add layer styles to type while it’s being used as a clipping mask:The Outer Glow layer style options. Image © 2012 Photoshop Essentials.comThe Outer Glow options.I’ll click OK in the top right corner of the Layer Style dialog box to close out of it. We can see the Outer Glow style listed below the Type layer in the Layers panel:The Layers panel showing the Outer Glow style added to the Type layer. Image © 2012 Photoshop Essentials.comThe Outer Glow style appears below the Type layer.And with that, we’re done! Here’s my final result with the Outer Glow added to the text (I also used to Move Tool to move the type down just a bit so it appears more centered between the two girls and the top of the image):Placing an image in text with clipping masks in Photoshop. Image © 2012 Photoshop Essentials.comThe final “image in text” result.And there we have it! That’s how to combine the power of clipping masks with type in Photoshop to easily place an image inside your text!