Turn a photo into a stencil with Threshold
To turn a photo into a stencil in Picstea, add a Threshold adjustment layer from Layer → New Adjustment Layer → Threshold… and move its Level slider until the subject reads as clean black shapes on white. Export that as a PNG if you only need to print it. If you need a vector file for a cutting machine, select the black with Select → Color Range…, trace the selection with Select → Make Work Path from Selection…, turn the path into a shape layer and export an SVG. Everything runs in your browser, and the photo is never uploaded.
The example here is a side-on photo of a dog that should end up spray-painted on a tote bag. The stencil gets cut from a sheet of vinyl, so the cutter needs an SVG with one solid shape. Later in the post the same photo becomes a three-tone poster with Posterize.
How does Threshold turn a photo into black and white?
Open the photo in the Picstea editor. Threshold works out the brightness (luminance) of every pixel and makes it pure white if it's at or above the Level value, and pure black if it's below. There are no greys left afterwards, which is what a one-layer stencil needs. Level runs from 0 to 255 and starts at 128.
Choose Layer → New Adjustment Layer → Threshold…. The same list sits under Image → Adjustments, and both add an adjustment layer above the active layer, so the photo's pixels stay as they are. Select the Threshold layer and drag Level in the Properties panel while you watch the canvas:
- Lower values make more of the image white, so thin details in bright areas vanish.
- Higher values turn more of it black, which fills in shadows and can join the subject to the background.
You don't need a Black & White layer underneath, since Threshold measures brightness itself. Toggle the Threshold layer's eye icon to compare with the photo.
How do I get rid of specks and noise first?
Grain, fur and small highlights turn into hundreds of tiny dots at the threshold, and a cutter will try to cut every one of them. Smooth the photo before the threshold step: select the photo layer (not the adjustment layer) and run Filter → Noise → Median. Its Radius goes from 1 to 100 px; a radius of a few pixels removes most specks. Filter → Blur → Gaussian Blur works too and gives softer, rounder shapes.
Filters change pixels directly on a pixel layer. To keep the original, choose Layer → Smart Object → Convert to Smart Object first; the filter then becomes a smart filter you can edit or hide later. The filters docs cover both cases.
How do I select only the black parts?
Choose Select → Color Range…. The dialog has a Colour field that starts at your foreground colour, which is black unless you changed it (press D to reset the colours). It also has a Fuzziness slider from 0 to 255 (default 40) and a Sample all layers checkbox that is on by default. Leave it on. Color Range then reads the image as you see it, with the Threshold layer applied, so black means the stencil.
The canvas previews the selection while you move the slider, and the dialog reports the size of the selected area or "Nothing matches". Since the picture now has only two colours, the default Fuzziness picks up the black cleanly. Press OK.
If you want the white parts instead, for example to cut the inverse stencil, choose Select → Inverse (Cmd/Ctrl+Shift+I). The selections docs list the other ways to change a selection.
How do I turn the selection into a vector shape?
- Choose Select → Make Work Path from Selection…. Enter a Tolerance (px) between 0.5 and 10; it starts at 1. Lower numbers follow the pixel edges more closely, higher numbers give smoother outlines with fewer anchor points. Press Make Work Path.
- Press U to pick the shape tool and set its Fill colour in the options bar. The new shape takes the shape tool's fill and stroke settings; black is the obvious choice for a stencil.
- Press P for the Pen tool. Its options bar has a work path group with Selection, Mask, Shape and Delete Path. Press Shape. Picstea adds a shape layer built from the traced path.
The trace closes every outline and keeps holes, so the white of the dog's eye comes out as a hole in the black shape. A path can have at most 64 separate outlines (holes included) and 4,096 anchors. Past that, Picstea says "The selection is too detailed for a path. Try a larger tolerance." A larger tolerance cuts anchors; for too many outlines, smooth the photo more so the specks disappear.
Fix individual points with the Direct Selection tool if you need to. The paths and Pen tool docs explain anchors, handles and the one work path each document keeps.
How do I export the stencil as an SVG?
Picstea's SVG export writes shape layers as <path> elements, but a visible adjustment layer makes it flatten the whole file into one image. Hidden layers are still written into the file, just set to not display, so a hidden photo would make the SVG large. Make a copy for the cutter instead:
- Choose Image → Duplicate. A copy opens in a new tab, with "copy" added to its name.
- In the copy, delete the Threshold layer and the photo, leaving only the shape layer.
- Choose File → Export As… (Cmd/Ctrl+Shift+E), pick SVG and press Export.
The original document keeps the photo and both layers, so you can change the Level and trace again. For a printed stencil you can skip the tracing and export the thresholded image as a PNG. The file formats docs list what each format keeps.
Can I make a stencil with more than two tones?
Yes, with Posterize. Spray stencils and screen prints often use two or three layers, a dark one and a mid-grey one, cut separately. In the original document, hide the Threshold layer, then add Layer → New Adjustment Layer → Black & White… and above it Layer → New Adjustment Layer → Posterize…. Posterize reduces each colour channel to a set number of evenly spaced tones; its Levels slider goes from 2 to 255 and starts at 4. The Black & White layer underneath matters here, because Posterize on a colour photo gives you posterized colours, not greys.
Set Levels to 3 and the photo is reduced to black, a mid grey (#808080) and white. Then repeat the selection steps once per tone: open Select → Color Range…, set Colour to #000000 for the dark layer or #808080 for the grey, lower Fuzziness to around 20 so the neighbouring tone isn't picked up, make a work path and press Shape. Each tone becomes its own shape layer, and you can give them different fills to check how the print will look.
How does this compare with Photoshop and Inkscape?
Photoshop has a Threshold adjustment, Color Range and a Make Work Path command whose tolerance also runs from 0.5 to 10 pixels. Inkscape, a free vector editor, traces an imported image directly with Path → Trace Bitmap (Shift+Alt+B); its Brightness cutoff mode does the threshold and the trace in one step. In Picstea you set the threshold on the photo first and trace afterwards. The Picstea vs Photoshop page compares the two editors more broadly.
Questions people ask
Does Threshold change my original photo?
No. Both menu paths add an adjustment layer. Hide or delete it and the photo is back as it was.
Why did my SVG come out as one big image?
A visible adjustment layer or clipping mask makes Picstea flatten the SVG. Picstea shows the note "Adjustment layers can't be expressed in SVG, so the image was flattened." Delete those layers in a duplicate and export again.
Can Picstea trace a photo automatically?
Not in one click. The route is Threshold or Posterize, Color Range, Make Work Path from Selection and the Pen tool's Shape button, as above. It works best on simple, high-contrast shapes.
What tolerance should I use for a vinyl cutter?
Start at 2 or 3. The default of 1 follows pixel edges closely and gives many anchors. Check the outline at 100% zoom and trace again if the curves look jagged.
Open Picstea and add a Threshold layer to your photo.