Graphite or coloured pencil drawing from any photo
Edge Detection
Pull the outlines out of any image for line art, tracing, stencils or computer vision tests.
Loading tool…
How to use edge detection
Drop an image.
Pick a style: white edges on black, black on white for tracing, or coloured edges.
Add smoothing to ignore noise and fine texture.
Raise the cutoff for clean single weight lines, then export.
What this tool does
- Sobel gradient magnitude on luminance
- Gaussian smoothing before detection, sized in full image pixels
- Hard cutoff for binary edge maps
- Black on white output ready for printing or tracing
How the result is verified
Each output is decoded again after encoding and checked for the expected width and height.
Frequently asked questions
How do I get clean lines from a noisy photo?
Raise Smooth first to 2 or 3 pixels, then raise the cutoff until the background clears. Black on white is easiest to judge.
Can I use this for a colouring page?
Yes: black on white with some smoothing and a cutoff gives a printable outline. Photo to Pencil Sketch gives a softer hand drawn look.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Raised relief with strength, depth and light direction
Two tone image with manual or automatic cutoff and dithering
21 effects from duotone and halftone to sketch, glow and RGB split
Unsharp mask with amount, radius and threshold