Sticker Cut Line Maker
Operator: Abdulla Al Fahad. How tools are built and checked
A die-cut sticker needs two things beyond the picture: a white border around the artwork so the print survives an imperfect cut, and a cut path that follows that border exactly. Cutters read the path as vector lines, so it has to be a clean closed curve, not a traced edge full of staircase steps.
This page builds both from the picture's transparency. It offsets the shape outwards by the border width, rounds off notches, offsets again for a bleed, traces the result into smooth paths in millimetres and then lays copies on a sheet.
Key features
- Border, extra cut gap, bleed and smoothing each set in millimetres, from a sticker width you choose
- Holes can be filled (a single outer cut for a letter O) or kept; specks of stray alpha are dropped
- A preview with the white border, the dashed cut line and the bleed in blue
- Exports: a PNG of the print layer at 150, 300 or 600 dpi, a layered SVG with print and cut groups, and a cut-only SVG
- A Letter or A4 sheet with as many copies as fit, and eight registration corner marks, as a PDF
- Optional background removal with a model that runs in the browser, for pictures without transparency
How the border and the cut path are built
The outline is built on a pixel grid from the alpha channel. A pixel counts as sticker when its alpha reaches the threshold (128 by default). The border is the set of pixels within the border distance of the sticker, found with an exact Euclidean distance transform, so the offset is round at corners instead of the square a box blur gives.
Smoothing is a morphological closing: the shape is grown by the smoothing radius and shrunk back by the same amount. That fills notches and joins pieces closer than twice the radius, while leaving the outer edge where it was. The cut gap and the bleed are two further offsets in the same way, so border, cut and bleed are nested shapes at exact distances.
The final outline is traced with marching squares into closed loops, thinned with the Douglas-Peucker algorithm to about 0.04 mm of tolerance (never less than a third of a pixel), and optionally rounded with two rounds of corner cutting. Outer loops and holes run in opposite directions, and the SVG uses the even-odd fill rule so holes stay open.
The work resolution is chosen so the padded grid stays within 2,600 pixels a side, up to 1,400 pixels across the artwork. The mm values are exact; the path precision is that of the grid, so a 60 mm sticker is traced at about 23 pixels per millimetre.
How it works
The distance transforms and tracing run in a worker, started about a quarter of a second after the last change and cancelled when you change a setting again. A very large border on a small sticker is refused with a message instead of exhausting memory.
For a picture without transparency, the background remover uses the MODNet matting model, about 26 MB, downloaded once from Hugging Face and then kept by the browser. The picture itself stays in the page.
The sheet is laid out as a grid of the artwork-and-bleed boxes with your gap, centred on the paper. The PDF paints a white shape out to the bleed, then the artwork, then, if you ask for it, the cut line in magenta; the eight corner marks are 6 mm long and 7 mm in from the paper edge.
Typical uses
- A seller prints 40 small cat stickers on A4 and cuts them on a desktop machine. She exports the layered SVG into the cutter's software, hides the print layer, and the machine follows the 2 mm border exactly.
- A band's merch seller has a 1200 × 1200 px logo with a soft glow baked into the PNG, so the first outline wraps a halo several millimetres wide around a 50 mm sticker. Raising the alpha threshold until the dashed line hugs the logo, or removing the glow in an image editor, brings the cut back to the 2 mm border she wanted.
- A teacher makes 24 name labels, each a single word in a brush font. With smoothing at 0 and a 1 mm border the letters stay separate pieces; with 1.5 mm of smoothing, letters closer than 3 mm fuse into one word, and a single outer cut replaces five.
Building one
- Open the artwork; if it has no transparency, remove the background first.
- Set the sticker width and the border, then judge the dashed cut line and the bleed in the preview.
- Pick the paper and copies in the sheet card; then download the PNG, the SVG for your cutter, or the sheet PDF.
Example
A sketch like this: two overlapping discs with transparent padding around them, the whole PNG set to a 60 mm wide artwork box
Border 2 mm, extra cut gap 0, smoothing 1 mm, bleed 1.5 mm, fill inner holes on; sheet: Letter, 4 mm gap, 15 mm marginWhat the page reports
1 piece, 49.6 × 34.6 mm including bleed (the discs themselves are about 42.6 × 27.6 mm; the rest of the 60 × 48 mm box is transparent padding)
White border area 1,159.4 mm²; with bleed 1,352.0 mm²
Letter sheet: 8 fit, 2 across by 4 down, with the 60 × 48 mm artwork box as the cellTips for best results
- Raise smoothing to about half the width of the narrowest gap you do not want cut, such as the space between the legs of a figure.
- A bleed of 1 to 1.5 mm covers the usual 0.5 mm cutter drift; more only wastes ink.
- For letters that must stay separate pieces, set smoothing to 0 and the border small enough that neighbouring letters do not merge.
Things to check before you rely on it
A soft shadow baked into the PNG counts as part of the sticker once its alpha passes the threshold. Raise the threshold to cut it off, or remove the shadow first.
The registration marks here are generic corner marks. Cutters with a print-then-cut feature use their own marks; the SVG is the file to bring to those.
Fine detail narrower than about one pixel at the working grid, roughly 0.04 mm on a 60 mm sticker, is smoothed away.
Artwork larger than 2,400 pixels is reduced when opened, so a 600 dpi export of a sticker wider than about 100 mm is limited by that source size.
Common errors and how to fix them
- "No pixels are opaque enough at this alpha threshold"
- Lower the threshold, or the picture is fully transparent; remove the background from a flat picture instead.
- "The outline grid would be too large"
- Reduce the border, bleed or smoothing, or make the sticker wider so those distances are a smaller share of it.
- "The sticker is larger than the sheet"
- Reduce the sticker width, pick a larger sheet, or shrink the page margin to its 12 mm minimum.
- "The background remover could not download the model"
- Check the connection to huggingface.co; the page reports the error and everything else keeps working with a transparent PNG.
Best practices
- Keep the border at least twice the cutter's registration error: a 1 mm border absorbs half a millimetre of drift on each side.
- Cut one test sticker with the real settings before running a full sheet.
Frequently asked questions
What is the difference between the border, the cut gap and the bleed?
The border is white that stays on the sticker. The cut gap adds more distance before the blade, usually 0. The bleed is printed past the cut line so a slightly off cut shows white, not bare paper. They are three nested offsets of the artwork.
Does the outline stay exact when I resize the sticker?
Yes, because every distance is in millimetres and the grid is rebuilt for the new width. Only the PNG is raster; the cut path is vector at any size.
Why is the cut line not exactly on the artwork edge?
It follows the border, which is the artwork grown by the border distance, plus any extra cut gap you set. With both at zero it follows the artwork's opaque edge, simplified to about 0.04 mm.