Home
» Wiki
»
How to Turn a Photo into a Pencil Sketch in Photoshop
How to Turn a Photo into a Pencil Sketch in Photoshop
This tutorial will show you how to easily turn a photo into a pencil sketch using Adobe Photoshop . We'll start by turning a photo into a black and white sketch, then we'll show you 3 different ways to add color to your sketch, including using the original color of the photo, a single color, and a gradient!
The article used Photoshop 2021 but all steps should work with Photoshop 2022 and 2023. These first steps will turn the photo into a black and white sketch.
Step 1: Duplicate the Background layer
We'll start in Photoshop's Layers panel, where the image appears on the Background layer:
Photoshop's Layers panel shows the image on the Background layer.
We will need this image when we add color to our sketch later, so to keep it safe, we will make a copy of it.
Click on the Background layer and drag down to the New Layer icon :
Drag the Background layer to the New Layer icon.
Make a copy of the Background layer.
A copy appears above the original:
A copy Background layer appears above the original Background layer.
Step 2: Desaturate the layer
Next, we'll remove all the color from the Background copy layer using Photoshop's Desaturate command.
Go to the Image menu in the menu bar along the top of the screen, select Adjustments , and then select Desaturate :
Select the Desaturate command in Photoshop.
Photoshop desaturates the image, leaving us with a black and white version:
Image after color desaturation.
Step 3: Duplicate the desaturation layer
Back in the Layers panel, create a copy of the desaturated version by dragging the Background copy layer down to the new layer icon:
Drag the Background copy layer to the new layer icon.
And again, the copy appears above the original:
The new Background copy 2 layer appears above the other layers.
Step 4: Invert the layer
We need to invert the brightness levels on this layer, making the highlights darker and the shadows brighter. To do that, we'll use Photoshop's Invert command.
Go to the Image menu , select Adjustments , then select Invert :
Select the Invert command in Photoshop.
This inverts the image, creating a negative film effect:
Image after brightness inversion.
Step 5: Change the layer blend mode to Color Dodge
In the Layers panel, change the blend mode of the inverted layer from Normal (default) to Color Dodge :
Change the layer blend mode to Color Dodge.
The document turns completely white, although you may see a few scattered black areas depending on your image:
Result after changing blend mode to Color Dodge.
Step 6: Convert layer to smart object
To create the sketch effect, we'll blur the inverted layer with Photoshop's Gaussian Blur filter. But to keep the filter settings editable, we'll apply the Gaussian Blur as a smart filter. And to do that, we'll first need to convert the layer to a smart object.
In the Layers panel, click the menu icon in the upper right corner:
Click the menu icon in Photoshop's Layers panel.
And select Convert to Smart Object from the menu:
Select the Convert to Smart Object command from Photoshop's Layers panel menu.
An icon appears in the layer preview thumbnail, letting us know that the layer is now a smart object and we're ready to apply the filter:
Smart object icon in layer preview thumbnail.
Step 7: Apply Gaussian Blur filter
Go to the Filter menu in the menu bar, select Blur , then select Gaussian Blur :
Select the Gaussian Blur filter in Photoshop.
Then, in the Gaussian Blur dialog box, drag the Radius slider along the bottom to blur the contents of the layer. The sketch effect you achieve will depend on the amount of blur you apply. A lower radius value will create a sketch with smooth thin lines, while a larger value will create a more realistic sketch.
For example, if we choose a fairly low radius value of 10 pixels:
Set a low radius value in Photoshop's Gaussian Blur dialog box.
Finished with this effect here with very smooth lines:
Photo to sketch effect using low Radius value
But if we increase the value to a much higher value, say 45 pixels:
Increase the radius value in the Gaussian Blur dialog box.
The effect looks more like the original photo. The radius value you need will depend on the photo and the look you want, so pay attention to the photo as you drag the slider to evaluate the results.
In this case, the example will use the second, more realistic version. Click OK when you're done to close the Gaussian Blur dialog box:
Sketch of the effect when using a large Radius value.
How to edit Gaussian Blur settings
Since we applied the Gaussian Blur filter to a smart object, the Layers panel will show this filter listed as a smart filter below the smart object. You can double-click the word Gaussian Blur at any time to reopen the filter dialog and experiment with different settings:
Photoshop's Layers panel showing the Gaussian Blur smart filter.
Step 8: Add a Levels adjustment layer
At this point, the sketch might look too bright with too little contrast. But we can darken it very easily using a Levels adjustment layer and a blend mode layer.
Still in the Layers panel , click the New Fill or Adjustment Layer icon :
Click the New Fill or Adjustment Layer icon in Photoshop's Layers panel.
And select Levels from the list:
Select the Levels adjustment layer.
Photoshop adds a Levels adjustment layer above the smart object:
New Levels adjustment layer in Photoshop's Layers panel
Step 9: Change blend mode to Multiply
Then, to darken the sketch, simply change the blend mode of the adjustment layer from Normal to Multiply :
Change the blend mode of the Levels adjustment layer to Multiply.
The Multiply blend mode is one of a group of blend modes that darkens the entire image. And instantly, the sketch looks much darker:
Sketch effect after changing blend mode to Multiply.
How to adjust brightness
If your sketch looks too dark, reduce the Opacity of the adjustment layer, which is located directly across from the blend mode option in the Layers panel. The further you lower the opacity from 100%, the more the layers below the adjustment layer will show through, brightening up your sketch.
For example, mine would be reduced by about 40%:
Decrease the opacity of the Levels adjustment layer.
And with that, we have our black and white version of the sketch! Next, the article will show you a few different ways to add color:
Final black and white sketch effect.
Fill the outline with the original color of the image
These next steps will add color to the sketch using colors from the original image. Then, we'll show you how to fill the sketch with a single color, then with a gradient effect.
Step 10: Duplicate the Background layer again
In the Layers panel, create a copy of the original image by dragging the Background layer (the original layer at the bottom) down to the New Layer icon :
Make another copy of the Background layer.
The copy (Background copy 3) appears between the Background and Background copy layers :
The Background copy 3 layer appears above the original Background layer.
Step 11: Rename the new layer to Color
Now our Layers panel is cluttered with copies of the Background layer. And they all have names like Background copy, Background copy 2, Background copy 3 but they don’t tell us what the layer is used for. So let’s rename our new layer to something more descriptive.
Double-click directly on the Background copy 3 name to highlight it:
Double-click the layer name to highlight it.
Then rename it to Color. Press Enter (Win) / Return (Mac) on your keyboard to accept it:
Rename the layer to Color.
Step 12: Move the Color layer above the adjustment layer
We want the image to appear above the sketch. So click on the Color layer and drag it above the Levels adjustment layer. When a blue line appears above the adjustment layer, release your mouse button:
Drag the Color layer to the top.
The image temporarily blocks the sketch from view:
The Color layer is now at the top of the layer stack.
Step 13: Change blend mode to Color
To blend the color from the image into the sketch, change the blend mode of the Color layer from Normal to Color :
Change the layer blend mode to Color.
Blend mode Color tells Photoshop to only blend the colors from the active layer with the layers below. And just like that, we've added the original color back to the sketch:
The sketch is colored with the original colors of the photo.
How to adjust color intensity
If the color is too dark, reduce the layer opacity. For example, reduce it to 50%:
Decrease the opacity of the Color layer.
When the opacity is reduced, the colors become more subtle. And that's how to color the sketch using the original colors of the photo:
Sketch effect after reducing the opacity of the Color layer.
How to color a sketch with a single color
If you'd like to see what your sketch would look like with colors from a photo, you can stop here. Otherwise, check out the second way to add color, this time using a single color. Then, we'll finish the tutorial by learning how to colorize your sketch with a gradient effect.
Step 14: Turn off the Color layer
Before going any further, turn off the Color layer we used in the previous steps by clicking on the visibility icon (eye) in the Layers panel:
Turn off the Color layer in Photoshop's Layers panel
Step 15: Add a Solid Color fill layer
To fill the sketch with a single color, we'll use a Solid Color fill layer. Click the New Fill or Adjustment Layer icon at the bottom of the Layers panel:
Click the New Fill or Adjustment Layer icon in Photoshop's Layers panel.
Then select Solid Color from the list:
Select the Solid Color fill layer in Photoshop.
Photoshop opens the Color Picker, where we select the color we need. Don't worry about choosing the wrong color because you can always go back and choose a different color, as we'll see later.
The example will try a shade of blue. Click OK when you're done to close the Color Picker:
Select blue from the Color Picker.
In the Layers panel, the Solid Color fill layer appears above the other layers. And in the document, the color you selected will temporarily block the sketch from view:
The selected color will fill the image.
Step 16: Change blend mode to Color
To blend the color into the sketch, change the blend mode of the fill layer to Color:
Change the blend mode of the fill layer to Color.
And here is the result with the sketch highlighted in blue:
The color effect uses blue.
How to change color
To try a different color, double-click the fill layer's color swatch in the Layers panel:
Double-click the fill layer's color swatch in Photoshop's Layers panel.
Then, select a new color from the Color Picker. As long as the Color Picker remains open, you can continue to select different colors and see a live preview in the document.
The example will select a shade of purple. When you're done, click OK to close the Color Picker:
Select a different color from the Color Picker.
And now the sketch is colored purple:
Color effect using purple.
Adjust color intensity
If the color is too dark, reduce the Opacity value of the fill layer. For example, reduce it to 70%:
Decrease the opacity of the fill layer.
And that's how to add a single color to your sketch! Next, we'll finish things off by learning how to color your sketch using a gradient effect, and then we'll show you how to switch between all these different versions to choose the one you like best:
Results with reduced blur.
How to color a sketch with a gradient effect
At this point, we have learned how to convert a photo to a black and white sketch, how to restore the original colors from the photo, and how to add a single color. We will finish this tutorial by learning how to colorize a sketch using a gradient effect.
We won’t be covering how to create your own custom gradient here. Instead, we’ll be using one of Photoshop’s built-in gradient effects. And in the latest versions of Photoshop (2020 and up), there are a ton of new gradient effects to choose from.
Step 17: Turn off the Solid Color fill layer
First, if you've been following along from the beginning, turn off the Solid Color fill layer we used in the previous steps by clicking on that layer's visibility icon in the Layers panel:
Click the fill layer visibility icon.
This will restore the black and white version of the sketch:
Black and white sketches return.
Step 18: Add a Gradient fill layer
To colorize our sketch with a gradient effect, we’ll use a Gradient fill layer. And we’ll add the fill layer right above the Levels adjustment layer. First, click on the Levels adjustment layer in the Layers panel to make it active:
Select the Levels adjustment layer in Photoshop's Layers panel.
Then, click again on the New Fill or Adjustment Layer icon :
Click the New Fill or Adjustment Layer icon.
And select Gradient from the list:
Select fill layer Gradient.
Step 19: Choose a gradient
In the Gradient Fill dialog box, select a gradient by clicking the small arrow next to the gradient swatch:
Click the arrow to the right of the gradient sample in Photoshop's Gradient Fill dialog box.
This will open the Gradient picker with many new gradients added in Photoshop 2020. The gradients are divided into groups based on theme (Basics, Blues, Purples, etc.):
Gradient Picker in Photoshop
To open a group, click the arrow next to the group's folder icon. Rotate to open the Purples group:
Rotate to open one of the gradient groups.
Then, to select a gradient inside the group and close the Gradient picker, double-click the gradient thumbnail:
Choose a gradient from Photoshop's Gradient picker
Gradient settings
Back in the Gradient Fill dialog box, you can change the Style of the gradient from Linear (default) to Radial, Angle, Reflected, or Diamond:
Style options.
You can reverse the order of the gradient colors:
Reverse option for gradients in Photoshop
And you can change the Angle of the gradient. For example, we will leave it at 90 degrees by default:
Angle options for gradients in Photoshop
Click OK when you're done to close the Gradient Fill dialog box. The gradient temporarily blocks the sketch from view:
Gradient blocked the sketch from view
Step 20: Change blend mode to Color
Back in the Layers panel, the Gradient fill layer appears above the Levels adjustment layer. To blend the gradient colors with the black and white sketch, change the blend mode of the Gradient fill layer from Normal to Color :
Change the blend mode of the Gradient fill layer to Color.
Then adjust the color intensity if needed by reducing the layer opacity:
Decrease the opacity of the Gradient fill layer.
And here is the sketch using gradient colors:
Sketch using gradient colors.
How to choose a different gradient or edit settings
To try a different gradient or edit any of the gradient options (Style, Reverse, Angle), double-click the Gradient fill layer's color swatch. This will reopen the Gradient Fill dialog box, where you can make any necessary changes:
Double click the Gradient fill swatch to edit the gradient settings
How to switch between sketch color effects
Now that we've colored our sketch with a gradient, what if you want to go back to the original color, or a solid color version, or even a black and white version? Here's how to switch between the different effects.
Restore black and white sketch
To hide all color effects and go back to the black and white version, simply turn off the Color layer, Solid Color layer, and Gradient fill layer using their visibility icons. For example, we turned off the Color and Solid Color layers, so the Gradient fill layer will also be turned off:
Turn off all 3 color effect layers in Photoshop's Layers panel
Turn off all 3 color effect layers, we will return to our black and white sketch:
Return to black and white version of sketch
Restore color version of sketch
Then, to enable one of the color effects, click on the visibility icon for that effect. For example, I'll enable my Color layer. Make sure you only enable one color effect at a time, otherwise they'll blend into each other:
Click on the visibility icon of the Color layer
And when we turn on the Color layer, we return to the original color of the image:
Original color version.
And that's it! That's how to turn a photo into a black and white pencil sketch, along with a few different ways to colorize a sketch in Photoshop!