Home > News

Living With Music: A Playlist by Rob Sheffield

Newyork Times Books - Wed, 09/08/2010 - 16:26
Sheffield's most recent memoir is "Talking to Girls About Duran Duran: One Young Man's Quest for True Love and a Cooler Haircut."

3-D Glasses Outside the Theater

Newyork Times Technology - Wed, 09/08/2010 - 16:26
3-D technology may soon be everywhere, including in the eyeglass stores.

Google real-time search projects, Android in China (Appolicious)

Yahoo Tech News - Wed, 09/08/2010 - 16:14
Appolicious - Google’s been revealing some insight to its ongoing research, the latest being real-time speech translation for Android.  You speak to your phone in your native tongue, and the phone will speak back in the language to which you’re translating.

Netflix Via the Wii: Improving Its Picture

Newyork Times Technology - Wed, 09/08/2010 - 16:13
Using a component cable, rather than the composite or RCA cable that comes with the Wii, will improve streaming movie quality.

Tasty Vegan Food? Cupcakes Show It Can Be Done

Newyork Times Science - Wed, 09/08/2010 - 14:50
Vegan eating has had a growth spurt in recent years, but a victory on a Food Network baking show this summer has showered attention on vegan food's fine taste.

Q & A: The Hair of My Chin

Newyork Times Science - Wed, 09/08/2010 - 14:09
If I tweeze out the single hair that grows from a facial mole, will it cause cancer, as my friend insists?

Editing Opacity With Layer Masks

Webdesigner Depot - Wed, 09/08/2010 - 10:30

On screen, the colors of pixels are a mix of red, green and blue values. A fourth value, opacity, controls how pixels blend with pixels laid over them.

In image-editing programs such as Photoshop, changing the opacity of a layer is easy but not always precise.

Setting a layer to 50% opacity  makes all of its pixels half-visible. If the situation calls for variable visibility, then layer masks are the answer.

A layer mask can give individual pixels different opacities. A layer mask is like a light cast onto a layer.

When the light is on, or white, the image is visible. When the light is off, or black, the layer can’t be seen.

Applying a layer mask to a photo hides certain parts. Photoshop uses a grid to represent “nothing” (i.e. completely transparent regions). Unlike areas modified by the eraser tool, areas hidden with layer masks can be restored even after the file is closed.


Shades of Gray Mean Variable Opacity

Opacity isn’t always on or off. Using shades of gray allows pixels to be partially opaque. The lighter an area of the mask, the more opaque it will be. For example, an 80%-white mask will be 80% visible, while a 20%-white mask will be 20% visible.

A mask with a dark-to-light gradient hides the top and shows some of the center and most of the bottom. Gray areas in the mask reveal or hide the pixels but don’t change the layer’s pixels.


Straightforward Examples

The image above shows how layer masks can be used to change a face.

  1. The original image sets a cut-out head on a beige background.
  2. Laying a happier face on top of the head doesn’t work; the lighting is slightly off.
  3. A soft-edged brush on the mask blends the face and head together.

Again, one major advantage here is the ability to correct mistakes. Layer masks can be edited as often as needed. This benefit is more evident in the process than in the result.

The edges of a layer are no different than the center, in terms of editing.

A grid-like texture is interesting, but it makes text hard to read. By darkening a mask on the texture layer, the text becomes legible; the texture loses strength and improves the text’s readability.


A Range of Transitions

Layer masks lend themselves to two types of transitions: hard edges and gradual blends. Gradual blends create a fade over a certain area and are easy to apply with the gradient tool. Hard-edged transitions work best with the natural “seams” in an image.

Above, two images are combined with a gradual blend and natural seams. Where there is pronounced contrast in an image, this is a seam; seams include the edges of objects, the sides of letters and numbers and abrupt changes in the depth of field. Natural seams are usually the most visually satisfying places to combine images, but detecting them takes some practice.


With some imagination, we can use the natural seams in the eyeglasses frames in the image above to show the sky image in different ways. Is the sky behind the glasses, inside the lenses, between the frames or somewhere else? The answer depends on the artist’s creativity.


The effect doesn’t have to be all or nothing. By painting with shades of gray (or using Image → Adjustments → Curves or Image → Adjustments → Levels), the glasses can appear to reflect clouds, rather than become portals to the sky. Sometimes this requires more precise control—or a better view of what the mask looks like.


How to See What’s Going On

To see the mask as a grayscale image, Option-click (Mac) or Alt-click (Windows) its icon in the Layers palette. Click the layer icon to return to the “normal” view. One advantage of Option- or Alt-clicking the mask is that it gives you the ability to paste.

Switching between the layer and its mask is a simple click, and the reasons to do so are two-fold. First, it shows exactly what’s going on and sometimes reveals mistakes. Secondly, it enables users to paste bitmaps into the mask.

Any image that can be copied—a layer, part of a photo or an illustration—can be pasted into the mask. The mask above was created by copying a solid shape, Option/Alt-clicking the mask icon and pasting. From here, the mask can be edited with any painting tool.


Editing the Mask, Not the Layer

Viewing the layer isn’t necessary, but it’s easy to forget which mode Photoshop is in. The key is a set of brackets around the appropriate icon.

A layer with a mask has two icons in the layers palette. When brackets surround the left icon, Photoshop is editing the layer’s pixels. When brackets surround the right icon, Photoshop is editing the layer’s mask. The difference is subtle but important. When painting a mask, be sure to click on the mask first.


Shortcuts

When editing a mask, a few keyboard shortcuts will come in handy. Type the letter “D” (Mac or Windows) to set the working colors to their defaults (black and white). Typing “X” switches the background and foreground colors. This toggles between reducing opacity (black) and restoring it (white).

The keyboard shortcut “X” makes switching between the two very easy, and the layer masks make removing and restoring opacity useful.


Conclusion

Layer masks are a flexible tool for creating complex illustrations, buttons, graphics, icons and logos. Any image that combines elements would benefit from layers, and designers would benefit from the ability to edit as they go.


Written exclusively for Webdesigner Depot by Ben Gremillion. Ben is a freelance writer and designer who solves communication problems with better design.

What techniques do you use to control opacity in a Photoshop layer? Share your ideas in the comments below.


If you find an exclusive RSS freebie on this feed or on the live WDD website, please use the following code to download it: H0Oa9C

p img {display:inline-block; margin-right:10px;} .alignleft {float:left;} p.showcase {clear:both;} body#browserfriendly p, body#podcast p, div#emailbody p{margin:0;}


Vodafone to Sell Its Stake in China Mobile for $6.6 Billion

Newyork Times Technology - Wed, 09/08/2010 - 05:40
About 70 percent of the proceeds of the $6.6 billion sale will be returned to shareholders through a stock repurchase

Packaging Is All the Rage, and Not in a Good Way

Newyork Times Technology - Wed, 09/08/2010 - 05:30
Amazon is trying to get manufacturers to make packages easier to open, hoping to reduce consumer “wrap rage.”

Judge Keeps Ban on Stem Cell Funds

Newyork Times Science - Wed, 09/08/2010 - 05:01
A federal judge refused to lift a ban on federal funding of human embryonic stem cell research.

Samsung Fascinate at Verizon: Buy One, Get One Free (Mashable)

Yahoo Tech News - Wed, 09/08/2010 - 04:37
Mashable - We knew that the Samsung Fascinate is coming to Verizon's online store today (and physical stores tomorrow), but we didn't know that Verizon has a special offer for buyers: buy one, get one free.

Craigslist quiet on fate of adult services section (AFP)

Yahoo Tech News - Wed, 09/08/2010 - 03:26

AFP - Connecticut's top law enforcement official called for online classifieds website Craigslist to confirm that it has permanently closed its "adult services" listings.


Red Bend Buys VirtualLogix for Mobile Virtualization (PC World)

Yahoo Tech News - Wed, 09/08/2010 - 03:00
PC World - Red Bend, a mobile software management company, has acquired VirtualLogix to stake its claim in the emerging field of mobile virtualization.

Desert Roads Lead to Discovery in Egypt

Newyork Times Science - Wed, 09/08/2010 - 02:50
Archaeologists uncovered the remains of a settlement that flourished more than 3,500 years ago.

State of the Art: Your Own Hot Spot, and Cheap

Newyork Times Technology - Wed, 09/08/2010 - 02:48
Virgin Mobile’s MiFi is nearly like the ones offered by Sprint and Verizon but with three exceptions: an unlimited data plan, no contract and a $40-a-month service fee.

Book Sets Off Immigration Debate in Germany

Newyork Times Books - Wed, 09/08/2010 - 02:30
Thilo Sarrazin, a former official who has been criticized as espousing racist views, has set off a discussion about Germany’s immigration policy.

HP sues ex-CEO Hurd over new job at rival Oracle (AP)

Yahoo Tech News - Wed, 09/08/2010 - 00:33

AP - Hewlett-Packard Co. is suing Mark Hurd, the chief executive it ousted last month, to stop him from taking a top job at rival Oracle Corp.


Smarter Than You Think: The Boss Is Robotic, and Rolling Up Behind You

Newyork Times Science - Wed, 09/08/2010 - 00:03
The next frontiers for mobile robots are the office, hospital and home.

Do People Want ‘Amateur Hour’ on Their TVs?

Newyork Times Technology - Wed, 09/08/2010 - 00:02
Steven P. Jobs says his customers don’t want to watch “amateur hour.” So why are they watching so much video on Facebook?

Apple releases Safari updates (Macworld.com)

Yahoo Tech News - Tue, 09/07/2010 - 23:39
Macworld.com - On Tuesday Apple issued minor updates to its Safari Web browser with “improvements to compatibility and security”: Safari 5.0.2 for Leopard and Snow Leopard (OS X 10.5.8 or later) or Windows (XP, Vista, and 7) and Safari 4.1.2 for Tiger (OS X 10.4.11).
Syndicate content

Bookmark and Share
Home Back To Top