Introduction: Using Opacity Masks in Adobe Illustrator

Picture of Using Opacity Masks in Adobe Illustrator

The "Origin of the Species - wall hanging" project makes a nice use of opacity masks in Illustrator, embedding an image in a field of text by changing the opacity throughout. But pulling this off can be difficult to figure out. This guide will run you through the steps to embed an image in a field of text merely by changing the opacity of the text itself. In this example, a silhoutted image is embedded in the full text of Romeo and Juliet.

Step 1: Gather Your Image and Text

Picture of Gather Your Image and Text

This guide will use a stripped down example because the actual sizes of text and images involved in a fullsize wall hanging will grind your system down to a crawl. You should experiment on a small scale before committing to a fullsize design.

*Obtain an image (it should be something that would look good as a silhouette)
*Obtain the text (Project Gutenberg is a great resource) and format out all the newlines and other whitespace (see the "Book Wall Hangings - Flatlands - cube" project for more info on this...)

I used the text of Romeo and Juliet with an image of Leonardo di Caprio and Claire Danes from the movie Romeo+Juliet.

Step 2: Process Your Image

Picture of Process Your Image

Basically you must turn the image into a silhouette. In Photoshop you can go to Image--Adjustments--Threshold and drag the slider until you achieve satisfactory results.

Step 3: Vectorize Your Silhouette and Create the Mask

Picture of Vectorize Your Silhouette and Create the Mask

You must turn your silhouette into a vectorized graphic before you can turn it into a mask. Resize it in Photoshop, then copy and paste it into Illustrator (if it's too big to copy/paste, just save it in Photoshop and open it in Illustrator. You should be able to copy it into the right layer if you at least get it open in Illustrator first). Using the "Auto Trace Tool" in Illustrator (I'm using CS... I believe CS2 does this a bit better with a different tool), click all over the silhouette until you've vectorized all the parts you want to include in the final design. There isn't much to using the Auto Trace Tool, just lots of clicking. One note: in my example, my negative space is white, so I made sure to set the Fill Color to white in the palette before I started vectorizing. If it were black, vectorizing would turn the negative space black. When you're done, Select All and then go to Object--Group to gather all the vectorized bits into a single grouping.

This is your mask. Rename the current layer (this should be the only layer you have right now) to Mask, and then in the Layer box's drop down menu, duplicate the layer so you have a backup.

Step 4: Add Your Text Layer

Picture of Add Your Text Layer

From the Layer box's drop down menu, create a new layer, and deselect all the layer views except for this new blank layer. Using the Type Tool, insert your text and adjust it for sizing. You should have your bed of text laid out just the way you want it. Now duplicate this text layer, calling the original layer Text and the duplicate Text Copy, or something appropriate. Select the layer views for the Mask and the Text layer with Mask being on top. Shift-click so both layers are highlighted as well (see the image provided in this step). Now do a Select All, and you should see both the text bed and the silhouette highlighted.

Step 5: Create Opacity Mask

Picture of Create Opacity Mask

If you didn't follow the previous step exactly, you're going to have lots of trouble. It is very easy to have something extra selected or deselected and ruin the entire process... this is why you make copies of your layers when they're good, so you can just delete your errored layers and start over from a fresh point.

To create the opacity mask, find the Transparency window and select Make Opacity Mask from the drop down menu. Make sure you check "Clip" and uncheck "Invert Mask"

Step 6: Alter Opacity of Masked Text to Create Light-Text Layer

Picture of Alter Opacity of Masked Text to Create Light-Text Layer

If your opacity mask went through properly, you'll have something resembling this image where the masked region is all that remains (the layers are still highlighted, that's why you see the horizontal lines in the enclosed image here). You can change the Opacity in the Transparency window to create the light text region of your final design. Now, deselect all layer views except this light text layer you've created and duplicate it for safekeeping. Drag these two layers down to the bottom of the layers box.

Step 7: Create Dark Text Layer

Picture of Create Dark Text Layer

All you have to do now is create a layer with negative space where our previous light-text layer resides. Go back to your Text and Mask layers that you copied for safekeeping and duplicate 2 new working layers (one of each), and move these to the top of the layers box. Repeat the same procedure to create an opacity mask as in step 5, but this time after making the opacity mask, deselect "Clip" and make sure you check "Invert Mask". You should have the inverse of the light-text layer. Again, in the image I've provided, the horizontal lines are due to having the layers being highlighted. Deselect all layer views except your dark text layer and duplicate it for safekeeping.

Step 8: Put It All Together

Picture of Put It All Together

Select just the views for the Light Text and Dark Text layers. They should superimpose perfectly. Zoom in and check it out where the text transitions from dark to light. Pretty neat, eh? To clean up, shift-click both layers in the layers box and select Merge Selected from the drop down menu to create your final layer. You can delete all the rest of the layers now if you'd like, or simply deselect their views. Remember, in this example I've used much smaller scales for simplicity. In a real design this would look much, much better with the full text and full size images.

Comments

fwjs28 (author)2009-10-07

AI cs4 is a bit different from this so i gave up on the exact effect /affect, but instead overlayed the image and set the opacity to 50%..similar enough for me

fwjs28 (author)fwjs282009-10-07

<a href="http://www.deviantart.com/deviation/139350744/">www.deviantart.com/deviation/139350744/</a><br />

philbar (author)2005-12-04

Cool idea!!! The instructions need some work though. I did the whole thing in photoshop and it turned out alright. Instead of making multiple layers I just selected the part to the text I wanted changed and adjusted the brightness and contrast. I used the book of John from the bible and created an image of Jesus. I'm hoping this will make one of my friends a very good christmas gift.

berky93 (author)philbar2009-01-01

thats pretty cool. I'm not christian and I'm barely religious if anything, but its still a cool idea nonetheless and I can see how it would make a great gift for your friend.

Sandisk1duo (author)2008-07-14

Yay photoshop!

pacifisticuffs (author)2005-12-23

Thanks for the great instructions. I made a poster for a friend for xmas. Just a note to those making these. Printing times are *long*. Expect to spend well over an hour. My final print was 24x36

philbar (author)2005-12-04

That picture looks like crap, heres a link to the actual one I uploaded:
http://i5.photobucket.com/albums/y160/coolguyrhs05/poster.jpg

saul (author)2005-11-30

this is rock and roll. I meant to document this bit as it is difficult, but didn't get around to it. nice, thanks. saul.

About This Instructable

8,995views

22favorites

License:

More by McWhizzleteeth:Using Opacity Masks in Adobe Illustrator12" Powerbook External Antenna Hack
Add instructable to: