How to Turn a Picture into a Line Drawing for Free (GIMP and Photopea)
Step-by-step free methods to turn a photo into a line drawing using edge detection and threshold in GIMP or Photopea, plus how to clean it up for coloring.
You can turn a picture into a line drawing for free with an image editor's edge-detection filter: in GIMP or the browser-based Photopea, desaturate the photo, run an edge filter (or "photocopy"/"find edges"), invert if needed, then apply a threshold so every pixel is pure black or white. It takes 5–15 minutes and works best on simple, high-contrast photos. Expect to clean up stray lines by hand before it is a usable coloring page.
This is the classic method that predates AI tools, and it is still useful if you want full control or don't want to upload photos anywhere.
What does edge detection actually do?
Edge filters look for places where brightness changes sharply, such as the outline of a face against a wall, and draw lines there. They do not understand what is in the photo. That has two consequences:
- They also draw lines where *texture* changes: grass, fabric, hair strands, wallpaper. That is where the messy bits come from.
- They miss outlines where the subject and background are similar in brightness, such as a gray cat on a gray sofa.
So the photo matters more than the filter. Plain backgrounds and strong light give the cleanest lines.
How do you do it in GIMP?
GIMP is free for Windows, Mac and Linux (gimp.org).
- Open the photo and crop it to the subject (Image > Crop to Selection, or the crop tool).
- Desaturate: Colors > Desaturate > Desaturate.
- Smooth texture: Filters > Blur > Gaussian Blur, about 2–3 px. This reduces noise in hair and fabric.
- Find edges: Filters > Artistic > Photocopy (gives dark lines on white, a good start), or Filters > Edge-Detect > Edge… and then Colors > Invert.
- Make it pure black and white: Colors > Threshold. Drag the slider until the main outlines are solid and the speckle disappears.
- Clean up: use the eraser (white) to remove stray marks and the pencil tool (black) to close gaps in outlines.
- Export: File > Export As > PNG.
How do you do it in Photopea?
Photopea runs in a web browser and works like a basic Photoshop (photopea.com).
- Open the photo (File > Open).
- Image > Adjustments > Desaturate.
- Duplicate the layer (Layer > Duplicate Layer), then Image > Adjustments > Invert on the copy.
- Set the copy's blend mode to Color Dodge. The image goes nearly white.
- Filter > Blur > Gaussian Blur on the copy, 2–6 px. Lines appear: this is the classic "pencil sketch" trick.
- Merge layers (Layer > Merge Down), then Image > Adjustments > Threshold to remove gray.
- Clean up with the brush and eraser, then File > Export As > PNG.
How do you clean it up into a real coloring page?
A filter result is a starting point. To make it pleasant to color:
- Close the shapes. Kids color up to lines; gaps let color "leak". Draw over breaks with a 3–6 px black brush.
- Delete texture. Erase grass blades, fabric weave and individual hairs. Keep only the outline of the hair mass.
- Thicken important lines (face, body outline) so they read at print size.
- Simplify the background, or erase it completely and leave the subject on white.
- Check at paper size. Zoom to 100% at print size; tiny areas you can't fit a crayon tip into should go.
How long does it take, and when is it worth it?
Five minutes for the filter steps, then 10–40 minutes of cleanup depending on the photo. It is worth it if you enjoy editing, need offline/no-upload processing, or want an architectural or object drawing where edges are already crisp.
For portraits of people and pets, filters struggle: faces turn into blotches and fur becomes scribble. That is the case a likeness-aware image to coloring page tool handles better, because it redraws the subject rather than tracing brightness changes. For a comparison of all approaches see How to turn a photo into a coloring page, and for the AI side, AI generator or photo converter?
Frequently asked questions
What is the best free program to turn a photo into a line drawing?
GIMP (desktop) and Photopea (in the browser) are both free and have the edge-detection, blur and threshold tools you need.
Why is my line drawing full of messy speckles?
Edge filters pick up texture like hair, grass and fabric. Blur slightly before the edge filter, then use Threshold and erase leftover specks.
Can I turn a photo into a line drawing on my phone for free?
Some free phone editors have sketch filters, but they usually keep gray shading. For a printable coloring page, finish with a black-and-white threshold step.
Do I need Photoshop to make a line drawing from a photo?
No. Free tools like GIMP and Photopea have the same core filters for this job.