Tuesday, May 5th, 2009

Photoshop: Partially removing color

ai final 755879 Photoshop: Partially removing color

While there are lots of ways that you can convert an image into black and white in Photoshop sometimes you want to remove some of the color but not all of it.

One method to do this, is to use a tool such as an adjustment layer to remove the saturation from the image or to apply a black to white gradient map adjustment. This removes all the color and you can then recover some of it by reducing the opacity of the adjustment layer to show some of color from the image layer underneath. However, when you adjust opacity, the setting is applied to every pixel in the image so light and dark pixels are treated equally.

ai layerMask 779646 Photoshop: Partially removing color

You can achieve a richer effect by using the image as its own mask so that the desaturation effect is applied with different strengths to pixels in the image depending on their relative lightness or darkness.

To see how this effect can be achieved:

ai step1 779686 Photoshop: Partially removing color
Step 1
Open a new image and add an adjustment layer to convert it to black and white. I used Layer > New Adjustment Layer > Gradient Map and used the Black, White gradient from the basic set of gradients.

ai step2 769587 Photoshop: Partially removing color
Step 2
Click the Adjustment Layer’s layer mask to select it – this is the white box in the Layer palette to the right of the Adjustment layer thumbnail. Choose Image > Apply Image. This tool lets you apply the image to itself as a layer mask. The current image name should appear in the Source Image area and you need to apply it to the Merged layer. Experiment with selecting and deselecting the Invert checkbox, if you have Preview selected you’ll see how each setting affects the image. Choosing Invert typically gives the best looking results and it’s the option I chose. Click Ok to add the image as its own layer mask.

ai step3 769622 Photoshop: Partially removing color
Step 3
Inspect the image and let’s talk about what’s happening. The screenshot here shows the mask (not the resulting image). You can toggle the mask’s visibility on and off by Alt + Click (Option + Click on the Mac) on the Layer Mask thumbnail in the Layers palette.

Masks are grayscale so they’re always black, white or shades of gray. They work like this: where they are white, the current layer is shown – that’s the black and white conversion in this example. Where the mask is black, we are seeing through the current layer to the colored layer below. Where the mask is grey we’re seeing some partial transparency in the black and white layer so some color is showing.

Here the mask is dark in the sky area and around two of the buildings on the left so you’re seeing some blue in the sky and color in the buildings in this area. Where the mask is white, the image is almost all desaturated.

ai step4 748660 Photoshop: Partially removing color
So you can see how subtly different the results are using this method, here’s the original image, the version we just created using the Apply Image command and another version showing the result with the same Gradient Map adjustment layer but this time with a reduced opacity and no layer mask. The significant differences are in the sky which is bluer and the grass which is more desaturated in our example – a result you cannot achieve by simply adjusting the opacity.

Tip
Masks can be adjusted just like regular layers. So, you can create more variety in the mask by clicking on it, and choose Image > Adjustments > Levels. Adjust the levels to suit – if you lighten the mask you’ll make it whiter overall which means the image will become more black and white and less colorful. If you darken the mask then you will see more of the colored image below.

I contribute to the post production blog at Digital Photography School and this post first appeared there.

Tuesday, November 20th, 2007

Paste to a layer mask

Ok, here’s the dilemma. You have two images open in Photoshop and you want to add one image as a layer mask into the other.

One solution is to copy the first image, then switch to the second. Click the layer mask and switch to the Channels palette. The layer mask appears as a channel. Select the channel’s visibility icon to make it visible, select the channel to make it active, and click Edit, Paste. Deselect its visibility, reselect the RGB channel to make that one active, switch back to your Layers palette and the pasted selection is in your layer mask. This solution has the advantage that the copied/pasted piece doesn’t have to be the same size as the layer mask.

The alternate solution if the two images are the same size, is to use Apply Image. Select the target layer mask, choose Image, Apply Image and, as the Source, select the image to copy from, the layer to copy and click Ok. Now the selected layer (or the merged source) is pasted into the Layer Mask.

Two alternatives, the second is easier to use but it does require two same size images.

Monday, November 19th, 2007

Graffiti de Paris

graffiti small 710019 Graffiti de Paris

I was looking for an image to put on a t-shirt for a friend for Christmas. Let’s say, he’s a bit out there and pretty just won’t cut it.

I had two good photos of this graffiti covered wall so the Photoshop Automate > Photomerge tool put them together into a panorama. I used the clone and copy and paste to put back the missing bits as it was shot from a moving boat – a far cry from the ideal for shooting a panorama.

Color fix was an issue. I needed a channel to blend back into the image to boost the color and contrast. Problem was, the red killed the blue and the blue killed the red. Solution was to use both.

Duplicate the background layer twice. Select the first copy, choose Image > Apply Image and apply the red channel to the image. Then use the second copy and apply the blue channel to the image. Use the lighten blend mode on the top layer to blend the two together. You can use a Layer mask on the top layer if necessary to bring back detail from the layer underneath.

The grunge details are an image/edge from a set of grunge images from Graphic Authority applied as a layer mask with a black background layer put behind everything.

Saturday, November 17th, 2007

Paste to a layer mask

Ok, here’s the dilemna. You have two images open in Photoshop and you want to add one image as a layer mask into the other.

One solution is to copy the first image, then switch to the second. Click the layer mask and switch to the Channels palette. The layer mask appears as a channel. Select the channel’s visibility icon to make it visible, select the channel to make it active, and click Edit, Paste. Deselect its visiblity, reselect the RGB channel to make that one active, switch back to your Layers palette and the pasted selection is in your layer mask. This solution has the advantage that the copied/pasted piece doesn’t have to be the same size as the layer mask.

The alternate solution if the two images are the same size, is to use Apply Image. Select the target layer mask, choose Image, Apply Image and, as the Source, select the image to copy from, the layer to copy and click Ok. Now the selected layer (or the merged source) is pasted into the Layer Mask.

Two alternatives, the second is easier to use but it does require two same size images.

Thursday, October 18th, 2007

Shopping for books by the Seine – No 2

shopping for books 701318 Shopping for books by the Seine   No 2

I took yesterday’s image and decided I wanted to look at it another way. So, I cropped it horizontally this time and worked a lot with the colors. I wanted not only to crisp it up but to punch some of the colors.

I’m working on some notes from Dan Margulis from Photoshop World in Las Vegas – his 5 minutes to a picture postcard class.

One of the great tricks I learned there is using the Luminosity channel to add punch to a photo. The idea is to duplicate the main layer in the image and then select this duplicate layer. Then use the Apply Image command. It’s a command most people don’t use because it’s so damn obscure but I’ve used it quite a bit before and I love it. Here you apply a channel such as the Red, Green or Blue to the image but, after you’ve done this, instead of accepting the default blend mode in the Layers palette – which is Normal and which makes the image Greyscale, you use the Luminosity blend mode to take the contrast but drop the color.

It’s a great tool – it’s only one of Dan’s tricks but it is fun to play with. Use the Green channel for portraits and the red channel for skies.

I did a lot to this image to try and recover and enhance the color. I started out by balancing the color to remove the cast. Then used a range of tools including curves and apply image to try to punch up the color.

I quite like the result.