Unlike Photoshop that has over a half a dozen masks, Illustrator only has two masks; however, they ALL do the SAME things (show or hide, and protect the object(s) under them) but in DIFFERENT ways:
When creating a mask, you TYPICALLY:
Moreover, ALL masks will:
EXECUTIVE SUMMARY: Once you realize the above concepts, it will help to "take" the mystery out of creating, editing, and seeing the effect of any mask or releasing or deleting it.
While both the Clipping Mask and the Opacity Mask can be used to SHOW/HIDE content under them. The different is the a Clipping Mask is a VECTOR mask and will always have a HARD EDGE and NO BUILT-IN TRANSPARENCY. Whereas, the Opacity Mask is a BITMAP mask and will allow for SOFT EDGES and can have BUILT-IN TRANSPARENCY based on the grayscale values (black, white, and gray) of the mask. The Opacity Mask can DOUBLE as a Clipping Mask and you can use both mask on the same in the same project.
Below are the two Adobe Illustrator mask types:
Clipping Mask – a VECTOR MASK used to SHOW or HIDE content BELOW it. It is helpful to think of the Clipping Mask as a "electronic" cookie cutter.
NOTE: Because a Clipping Mask is based on vectors, it is resolution independent meaning that it can be scaled without losing any crispness. However, it edges cannot be feathered. However, you can make the whole mask transparent by adjusting the Opacity.
REFERENCE: To learn more about the different between a vector and a bitmap, see the "Bitmap vs. Vector" app.
To CREATE a Clipping Mask:
CAUTION: You cannot use a BITMAP IMAGE as a clipping Mask. Otherwise, you will get an error.
Beside text that was used in the previous examples, you can use a host of other vector shapes as a mask.
A Clipping Mask is also useful in "clipping" out the BACKGROUND in bitmap (*.jpg, *gif, *png) image leaving just the object(s).
You are not limited to just creating the Clipping Mask, you can add whatever effects you want including adding BACK the stroke that was deleted when the Clipping Mask was made.
CAUTION: While you can use a host of vector objects, you cannot use MULTIPLE VECTOR SHAPES as a Clipping Mask. You will need to CONVERT them into a SINGLE Compound Path by selecting all of the shapes and then right-click and select Make Compound Path. Otherwise, only one of the shapes will be "clipped."
NOTE: You may try to group (CMD/CTRL + G) the shapes but this will not work either. While a text object has multiple letters (shapes), it is already Compound Path.
Another way to INDIRECTLY create a Clipping Mask is to use the Draw Inside Mode.
The actual mask can be SEEN:
In the Layers panel as a thumbnail with its name (e.g., HAWAII) or shape name (e.g., Ellipse) or Compound Clipping Path UNDERLINED in a sub-layer that was automatically created called <Clip Group>. The underline is similar to what is seen in Adobe Photoshop.
In a few of the previous examples, the clipping mask thumbnail is highlighted with a red border.
To MODIFY a Clipping Mask:
Besides modifying the a mask, you can also modify the CONTENT of a mask:
SHOW EXAMPLES HERE (Edit Content menu or Isolation Mode)
To SEE EFFECT after modifications has been:
On the artboard to show and hide pixels of the underlying layer:
To RELEASE a Clipping Mask for whatever reason:
Opacity Mask – a BITMAP MASK used to show or hide underlying content based on the gradient grayscale colors of the mask, where:
It is helpful to think of an opacity mask as a tinted window on a car.
To CREATE a Opacity Mask:
In this example, the Gaussian Blur effect was used to create a Vignette effect.
In this example, a foreground image was merged with a background image using a LINEAR GRADIENT.
In this example a radial instead of a linear gradient was used.
The actual mask is SEEN as:
A black, white, or gray bitmap thumbnail image in the Transparency panel.
In this previous example, the mask is highlighted with a red border.
To MODIFY the Opacity Mask:
Its effect can be SEEN after modifications has been made:
In a previous example, the Opacity Mask was rotated and scaled. Also, the Gaussian Blur effect was adjusted. Below is the BEFORE and AFTER example.
To RELEASE an Opacity Mask:
There are several options in the Transparency panel that can be used to manipulate an Opacity Mask:
There are also three additional advanced options in the Transparency panel that you can use as well if you select the menu and choose Show Options.
By default, the ARTWORK and MASK are LOCKED TOGETHER so they will be manipulated (e.g., move) together. However, you can UNLOCK them so that either the Mask or the Artwork can be manipulated SEPARATELY.
In the example below, the text (e.g., HAWAII) is used as the Opacity Mask for the underlying image (e.g., sunset image).
- The Clipping Mask used only the SHAPE of the mask (e.g., the HAWAII text) regardless of the text color.
- The Opacity Mask actually uses the COLOR of the mask (as well as its shape). Remember, BLACK CONCEALS, WHITE REVEALS pixels.
By default, the OPACITY MASK is CLIPPED to the MASK SHAPE. However, you can UNCLIP it so that the Opacity Mask is the SAME SIZE as the artwork. So, the Opacity Mask can DOUBLE as a CLIPPING MASK.
Below is another example of showing how the "clip" option in the Transparency works.
Another example to show HOW the CLIP option works with an Opacity Mask.
By default, the OPACITY MASK will work with the current grayscale color of the mask. However, you can INVERT it so that the the black areas of the mask become white and the white areas becomes black. The gray will also be inverted based in the intensity of the gray value.
The Invert Mask function is also useful if you forgot to change the color of your object or text (e.g., HAWAII) from black to white. Instead of going back and changing it, you can simply invert the mask by clicking on the Invert Mask check box to select it.
In the example, let's say you forgot to change the text color from black to white.
By default, the OPACITY MASK and the ARTWORK OPACITY are both set to 100%. However, you can adjust the opacity of either within the Transparency panel.
By default, the BLEND MODE is set to NORMAL. However, you can CHANGE THE BLEND MODE to create difference "blending" effects with layers below the mask.
While the most common way to use an opacity mask is to used a shape with a black, white, or a gradient, there are other ways to create an opacity mask. You can also use a shape with a grayscale pattern or a grayscale image created in another program like Photoshop to create a TEXTURE OR DISTRESS EFFECT. Moreover, you can CUT and PASTE these shapes into the opacity mask to create an OPACITY MASK.
Mask | Type | Typically created by | Typically modified by |
---|---|---|---|
Opacity | Bitmap | Creating a Opacity Mask and applying a gradient | Painting on the Opacity Mask with black, white or gray gradient |
Clipping | Both | Clipping an image(s) into an image or shape above it | Manipulating image(s) below the layer being clipped |
Mask Type | Best used when you need to: |
---|---|
Opacity | - make mask translucent to show and hide portion of the image |
Clipping | - clip more than one images into a vector shape |
FORMAT | WHERE IT IS STORED | HOW IS IT STORED |
---|---|---|
Opacity | Layers (Opacity Mask) Panel | Bitmap |
Clipping | Layers Panel | Vector |
You can use the Clipping Mask and the Opacity Mask together to for even more creativity.
The word "faux" is defined as artificial or imitation; fake. So, a faux mask is not a traditionally mask in Illustrator but it behaves as one in that it can show, hide or protect content under it. Moreover, it can be easily created.