JPG or PNG to SVG for Laser Cutting: One Panel, Start to Finish
7 min read
A design that exists only as a JPG or PNG can be laser-cut once it is an SVG: convert the picture, then import the SVG into LightBurn, xTool Creative Space or the Glowforge app. The laser follows the outlines in that file, so what matters is which outlines are in it.

Our example is a papercut panel, the kind people buy as a PNG on a craft market or make with an image generator: a deer on a hill between pine trees, mountains behind, a crescent moon, all black inside a rounded frame on a white 1254-pixel square. We converted it and then read the file the way laser software does, line by line. Several things in it would have spoiled the first cut.
What the laser reads in the converted file
Nothing was changed in the settings. What came back has 35 shapes and 909 anchor points: the black panel as one shape, the moon as another, 32 white cut-outs lying on the panel, and a white square under everything.
That square is the first problem. Laser software does not care that it is white; it is a closed path, so the laser would cut a square around the whole panel. Click it and delete that one object, nothing else. A PNG that already has a transparent background does not have this square at all.
Inkscape users will ask how this compares with Trace Bitmap, so we traced the same PNG there too, and with potrace, the open-source tracer underneath it. On a clean black-and-white panel like this all three give smooth outlines on the antlers and the mountain ridges. The difference is in the file: Inkscape gave one compound path with 1,889 anchor points, potrace one with 1,155, and ours keeps every piece separate (the moon is its own shape) with 909. If you already trace panels like this in Inkscape, the outlines will look much the same; you skip picking a threshold and get the moon back as a separate object.
The moon, the grass and the size of the panel
The moon touches nothing. Cut as it is, it drops out and leaves a crescent-shaped hole in the sky. Either draw a thin bridge from its tip to the frame or set the moon to engrave instead of cut.
The grass at the deer's feet is the part to measure before anything else. Its blades are about 8 pixels wide in this picture, the thinnest 4. How thin that is in wood depends on the size you cut. At 20 cm across one pixel is about 0.16 mm, so a blade is a little over a millimetre and its tip about half that, while the beam itself takes away a tenth of a millimetre or two. At 10 cm every one of those numbers halves, and the tips come close to the width of the cut. Decide the size before you decide whether the grass stays.
The size itself also has to be set by hand. The SVG says it is 1254 pixels wide, and Inkscape, at its 96 pixels per inch, opens it as 33 cm. Type the width you want in your laser software and check one measurement before you cut.
We tried Flat geometry, and it doubled the cuts
The conversion settings have a Geometry switch with two positions, Stacked (the default) and Flat. Flat makes every visible area a separate shape with nothing under it, and we expected it to give a cleaner file for cutting. It did the opposite.
With the background deleted, the default file adds up to 30,170 units of cut line. The Flat file adds up to 56,013. Every edge inside the panel is in it twice: once as the edge of a hole in the black, once as the outline of the white piece that fills the hole. A laser that cuts every path would go round each tree and each antler two times. Deleting all the white from the Flat file brings it back to 30,170, exactly the default file's cut.
So for a panel like this leave Geometry on Stacked. Nothing in the default file is hidden under another shape, and every line in it is an edge you can see. Flat has its place, though, and the next picture is where it earns it.
A panel in several colours
The deer is one sheet in one colour. Plenty of laser work is not: a layered wall panel is several sheets of plywood or acrylic glued on top of each other, and an inlay is pieces of different woods fitted side by side. potrace is no help with either, because it traces one colour. So we took a third picture, a house on a hill inside an arch in terracotta and cream, the kind of panel an estate agent orders as a gift for new owners.
With the default settings it came back as 39 shapes. Inkscape's Trace Bitmap, set to six colours, gave a similar picture with two faults you would see in wood. The moon was gone except for a thin arc, and every window had an orange rim around it, a ring that would have to be cut as a piece of its own.
For a layered panel, keep Geometry on Stacked. Glue the shapes on top of each other in the order the file lists them and the panel looks the way the picture does on screen, because a screen draws the file in that same order. Neighbouring shapes of one colour share a sheet, which leaves eleven sheets, and each of them is whole. Some are mostly hidden: the dark hill at the back disappears almost entirely under the sky, the lighter hills and the house.
For an inlay, switch Geometry to Flat. Every visible area is then a piece with nothing under it, and the pieces of one colour come out of one board: seven boards for this house. The doubled edges that spoiled the deer panel are exactly what an inlay needs here, since every edge is cut once on a piece and once on the piece beside it.
Both files also hold 23 shapes too small to cut: hairline strips along a few edges and a grey ring around the moon, the paper shadow the image generator painted in. Delete them before cutting, together with the cream square behind the arch, which is this picture's background shape.
A line drawing is a different job
Both panels are all solid shapes, so one question never came up on them: what happens to a drawing made of lines. For that we took one more file, a cat drawn in a single thin line.
With the default trace style, Fill, every drawn line becomes a thin black shape, and a shape has an outline on both sides. The laser would cut along both, 13,860 units of cut against 6,956 for the drawing's own lines, and the sliver between them would fall out. Set to score, it burns each whisker as a double line.
Centerline (Lite and above) draws one stroke along the middle of each line instead, so the beam passes once. Switch Trace style to Centerline in the conversion settings. It is for drawings made of lines; a filled-in area has no middle line and comes out as one thick stroke, which is why the deer panel stays on Fill.
Your own design
On the home page you can drop your own picture into the demo, no account needed, and look at the vector it makes. Downloading the SVG takes a subscription, from Lite, which is also where Centerline starts. Download it from the queue in the workspace or from your dashboard; a result stays there for 24 hours by default. If your laser software only takes DXF, open the SVG in Inkscape and save it as DXF.
Before the real board, cut the panel once in cardboard: a lost moon or a burnt blade of grass costs nothing there.
Related guides
- Convert a PNG or JPG to SVG for Cricut and Silhouette — A five-colour badge from PNG to heat transfer vinyl: what lands on each mat, which pieces lie under others, and when to knock the layers out.
- How to Turn a Sketch or Drawing into a Vector — A pencil character sheet converted to SVG three ways: as pencil, inked in black, and as bare line art on colour. Plus what a potrace threshold drops.
- How to Vectorize a Blueprint or Technical Drawing — A 1921 house plan on yellowed tracing paper converted to SVG: with the paper or as black ink, what a threshold loses, hatching, and scale in CAD.