Painting Techniques

How can I convert a JPG image to line art?

To convert a JPG to line art, desaturate it, adjust contrast with Levels or Threshold, then clean up. Tracing gives the most control, and the sketch method is quick.

On this page
  1. Before you start: pick a good source image
  2. Method 1: Levels or Threshold for clean lines
  3. Method 2: Color dodge for a sketch look
  4. Method 3: Filters for a quick result
  5. Method 4: Trace by hand for the most control
  6. Clean up and save
  7. Copyright and permission

To convert a JPG image to line art, desaturate the image, increase its contrast with Levels or Threshold, and then clean up the stray marks by hand. For the most control, trace over the photo on a new layer. A quick sketch-style effect is also possible with a blend-mode trick, but it gives looser lines than a clean outline. The steps below cover each method in Photoshop, with notes on when each one works best.

Before you start: pick a good source image

The source image matters more than any setting. A clean result starts with:

  • Clear contrast. A photo with clear light and dark areas converts better than a flat, low-contrast one.
  • Simple subjects. Busy backgrounds turn into noise. Crop tightly or choose an image with a plain background.
  • Enough resolution. Use the largest version you have. A small image produces jagged lines when enlarged.
  • Minimal compression. JPG compression can add speckles and blocky edges. Use the original file if you have it.

Work on a copy of the image, and keep the original untouched.

Method 1: Levels or Threshold for clean lines

This is the best starting point for a photo or drawing with strong dark lines.

  1. Desaturate. Go to Image > Adjustments > Desaturate, or press Shift+Ctrl+U (Shift+Cmd+U on a Mac). This removes color so you work with values only.
  2. Adjust Levels. Open Image > Adjustments > Levels (Ctrl+L or Cmd+L). Move the black point to the right to darken the lines, and move the white point to the left to push light grays to white.
  3. Try Threshold, if you want pure black and white. Image > Adjustments > Threshold turns the image into black and white, with a slider that sets the cutoff. Move the slider until the lines are solid and the paper is white. Threshold can break up thin lines, so check the result at full size.

Levels gives you more control over the gray tones. Threshold gives harder, cleaner lines but less nuance.

Method 2: Color dodge for a sketch look

This method is popular because it is quick. It produces a pencil-sketch effect, not clean lines, so it suits a sketch style better than a coloring page.

  1. Duplicate the photo layer (Ctrl+J or Cmd+J).
  2. Desaturate the duplicate (Shift+Ctrl+U or Shift+Cmd+U).
  3. Duplicate the desaturated layer and invert the copy (Ctrl+I or Cmd+I).
  4. Set the inverted layer’s blend mode to Color Dodge. The image will turn almost white.
  5. Blur the inverted layer. Go to Filter > Blur > Gaussian Blur and increase the radius until thin outlines appear.
  6. Adjust the result. Add a Levels or Curves adjustment layer above the stack to darken the lines and boost contrast.

If the lines look too soft or too faint, adjust the blur radius and the Levels. This method is easy to reverse, because each step is a separate layer.

Method 3: Filters for a quick result

Photoshop’s filter menu has several effects that produce line-like results. They are useful for experiments, but they are rarely clean enough on their own.

  • Find Edges (Filter > Stylize > Find Edges) traces edges in the image. Desaturate and adjust Levels afterward.
  • Poster Edges or Photocopy (in Filter > Filter Gallery) give bold, stylized lines. Check the sliders, since the effect depends heavily on the image.
  • Oil Paint (Filter > Stylize > Oil Paint) can smooth out fine texture before you apply another method, which can help with a noisy photo.

Work on a Smart Object or a duplicate layer, so you can change the filter settings later.

Method 4: Trace by hand for the most control

Manual tracing gives the cleanest outline, and it lets you choose which lines matter.

  1. Create a new layer above the photo.
  2. Lower the photo’s opacity so you can see your lines against it.
  3. Trace the main contours with a hard round brush or the Pen tool. Use the Pen tool for smooth curves you want to keep smooth.
  4. Add detail lines more lightly, and keep line weight varied.
  5. Hide the photo to check your lines.

Tracing takes longer than the filters, but it gives you a result that looks drawn, not processed. The clean line art guide covers line weight and the Shift-click method for straight lines.

Clean up and save

After converting, check the image at full size for these issues:

  • Speckles from JPG compression or the photo’s grain. Erase them by hand, or apply a light noise reduction before thresholding.
  • Gaps in lines, which you can close with a small black brush.
  • Stray lines in the background, which you can remove with an eraser or a selection.

Put the cleaned lines on their own layer, so you can color underneath them later. Save the working file in a layered format, such as PSD. Export a flattened copy, such as PNG, for sharing or printing. The layers guide explains how to set up the file.

Check the rights before you convert a photo or artwork. Your own photographs are yours to use. A photo or drawing by someone else may be protected by copyright, and converting it does not remove that protection. Ask for permission or use your own source material if you plan to publish or sell the result.

After conversion, you can color the lines using the flat color guide.

The complete guide to painting techniques

Digital Painting Techniques: The Full Process From Sketch to Finish
Read the guide

Keep exploring

Guides from other topics

All topics →