Centerline Vectorization: From Line Drawings to SVG and DXF
Learn when to trace the middle of a stroke, how to prepare scans and line graphics and what to check before laser, CNC, or pen-plotter work.
What is Centerline Vectorization?
Centerline Vectorization converts visible strokes in a raster image, such as a PNG drawing or a JPEG scan, into editable vector paths along their middle, a process often called centerline tracing. It follows the drawn line rather than tracing both edges of its thickness. Laserlinez provides SVG and DXF output for line-following workflows.
For example, a scanned pen stroke occupies a narrow band of pixels. Outline tracing follows the boundary of that band; centerline tracing follows its middle. This is useful when a laser, engraving tool, or pen should follow the line itself rather than draw around it.
When only a scanned drawing or handwritten original is available, automatic tracing can save substantial manual redrawing. Review and refine the recovered paths instead of rebuilding every stroke. If you already have suitable vector paths or editable single-line lettering, use those directly rather than rasterizing and tracing them again.


When to use Centerline Vectorization
Choose Centerline when the position of each drawn stroke defines the route you need. Useful starting points include handwritten lettering, scanned line drawings, schematics and line-based fabrication patterns.
- Lettering and signatures: recover paths from handwritten names, signatures, or stroke-based lettering for personalized engraving and marking. Check small loops, punctuation and connections before making the final item.
- CNC engraving and scribing: turn scanned line graphics into vectors for toolpaths that follow the line, rather than offsetting around a part boundary.
- Laser scoring and line cuts: recover score lines, slits, perforations, or an existing living-hinge pattern. A living hinge uses repeated cuts to make a sheet flexible; tracing recovers the pattern, not its mechanical design.
- Technical drawings and pen plotting: convert visible drawing strokes into editable geometry for diagrams, visual documentation and plotted drawings. Tracing does not recover CAD dimensions, constraints, or the meaning of drawing symbols.
Centerline, Contour, or Tonal: choose the geometry first
- Centerline Vectorization follows the middle of existing strokes. Use it when the laser, tool, or pen should follow a drawn line.
- Contour Vectorization traces shape boundaries. Use it when you need the perimeter of a part, cut-out lettering, or holes defined by a logo or flat graphic.
- Tonal Line Vectorization interprets detail, texture and contrast in photographs as many vector lines. Use it for photographic linework rather than recovering the center of an existing drawn stroke.

Prepare an image with readable strokes
Start with the cleanest original PNG or JPEG. A useful source shows both the strokes and the spaces between them clearly. More pixels help only if they contain real detail; enlarging a blurred thumbnail does not recover missing line structure.
- Scan flat and straight: keep the page flat and avoid perspective, folds, or shadows. Crop unrelated text, page borders and marks that should not become part of the result.
- Check thin lines at full resolution: faint pencil strokes, small letter loops and narrow gaps should remain distinguishable. For scans, aim for several pixels across the thinnest important stroke. If a one- or two-pixel line breaks up or loses its shape, rescan the original at a higher resolution rather than enlarging the file. Improve contrast without merging neighboring strokes.
- Avoid compression artifacts: use a clean PNG original when available. Repeated JPEG compression can create halos, speckles and broken-looking edges; converting a damaged JPEG to PNG does not repair them.
- Preserve meaningful small marks: punctuation, short ticks and dashed lines may be intentional. Remove dust and paper texture carefully rather than treating every small component as noise.
- Choose stroke-based content: broad filled logos and shaded photographs do not have an unambiguous line running through every area. Separate the line drawing from unrelated fills, or choose a different preset for the result you need.
How to create centerline SVG and DXF in Laserlinez
- 1
Upload the source and select Centerline
Upload the original PNG or JPEG in the workspace and select Centerline Vectorization. Confirm the selected preset before rendering; use the line drawing or scan itself, not a screenshot of an existing vector file.
- 2
Render and compare with the source
Generate the result and inspect whether the paths follow the middle of the intended strokes. Look closely at faint lines, lettering, crossings and dashes. Improve unclear source detail and render again when necessary.
- 3
Download and check the geometry
Download SVG or DXF and inspect it in your target software. If edits are needed, remove unwanted branches or duplicate segments in a vector editor while preserving intentional gaps. Keep an unchanged copy for comparison.
- 4
Configure and test the job
Use the reviewed file, including any saved edits. Verify the physical size, select the paths that belong in the job, assign the laser, CNC, or plotting operations and preview the complete result before testing a representative sample.
What to check in the vector result
Judge the geometry, not just the thumbnail. Zoom in to inspect individual paths, then review the drawing again at its intended physical size.
- Path position: a traced stroke should have a center path, not a narrow outline running along both edges. Separate parallel strokes in the source should remain separate.
- Endpoints and gaps: line ends should match the intended mark. Dashed lines and perforations must retain their gaps; do not join them just to reduce the path count.
- Junctions and crossings: lines intended to meet should connect without a tiny gap or overshoot. Check whether a crossing represents a real connection or two strokes passing over each other.
- Curves and corners: look for wobbles, excessive nodes, short false branches, or corners rounded away by cleanup. Simplify selectively without deleting real ticks or small features.
- Unwanted geometry: inspect for duplicate segments, isolated dust marks and accidental return lines. Two different paths meeting at a crossing are not automatically duplicates.
A drawn line can have two free ends, while a circle or the loop of a letter can form a closed path. Both are valid centerline geometry. Automatically closing every open path can turn a C into a loop, bridge a deliberate gap, or add a return line across the design.

SVG or DXF: check the imported geometry and size
SVG is useful for vector editing, compatible laser software and pen-plotter workflows. DXF is commonly used for CAD/CAM handoff. Choose the format your software imports reliably, then check that curves, separate paths and intentional gaps survive the import.
Verify a known dimension with the aspect ratio locked. Confirm SVG scaling or DXF import units if the size is wrong, especially when a DXF has no unit information. For a line-following drawing, measure between the intended path positions rather than assuming that the outside edges of thick source ink define the required size.
The paths describe where to move, not which operation to perform. Treat any imported layer names or colors as organizational aids; assign engraving, scoring, cutting, or plotting settings in the target software.
Using centerline paths for laser marking and line cuts
In LightBurn, Line mode follows vector paths. Use it for centerline marking or scoring and set power, speed and passes for the machine and material. Fill mode engraves enclosed areas; it is not the right operation for following an open stroke. Do not close a line merely to make Fill mode accept it.
Centerline paths can also define cuts along a line, such as slits and perforations. Check gap length, spacing and the material left between cuts. Tracing can carry small variations in slit length and spacing into perforation or living-hinge patterns. Rebuild dimension-critical patterns from known values and test flexibility and strength in the actual material. For the boundary of a part or a cutout, use Contour Vectorization instead.
Inspect the job preview for repeated passes and unwanted connectors. Avoiding an outline around each stroke can remove unnecessary travel for a line-marking job, but it does not guarantee a particular processing time or prevent all dark marks at crossings.
Changing the SVG display stroke does not change a laser spot, cutter diameter, or pen tip. With an ideal round footprint, the mark extends half its width beyond each endpoint. Actual mark dimensions depend on the tool or spot shape, settings and material. Check the visible ends and remaining gaps on a sample at the final size.
Using centerline DXF for CNC engraving and scribing
Create a CAM operation that follows the selected vectors when their position is the intended tool route. In Vectric, Quick Engraving's Outline strategy runs the tool tip along the lines; a 2D Profile toolpath also offers an On option. An inside or outside offset serves a different purpose, such as keeping a cutter on one side of a part boundary.
Select the tool, depth or pressure, feed and safe clearance for the job. With a V-shaped engraving tool, depth affects the groove width; the thickness of the source ink does not specify that depth. Preview tool travel and retractions, then generate G-code with the post-processor for your controller.
Using centerline SVG with a pen plotter
Inspect the drawing at its final size using the actual pen width as a guide. Nearby lines may merge on paper even when they appear separate on screen. A uniform pen cannot reproduce all the pressure and thickness changes in the original handwriting merely by following its center.
Check pen-up moves and path order in the plotting software. Keep deliberate gaps and lift the pen between separate strokes; joining them can draw an unwanted connector. If you still have editable text, a suitable single-line font may be a cleaner starting point than tracing a raster version of an ordinary outline font.
Common centerline problems and what to check
- Two lines around each stroke: confirm that you generated a centerline result rather than an outline trace. A pair of genuinely separate strokes in the source should not be merged.
- Short branches at corners or line ends: compare with the original before removing them. A branch may be a tracing artifact, but a punctuation mark or short cross-stroke may be essential.
- Missing strokes or gaps that have closed: inspect source contrast, compression and any image cleanup. Repair only confirmed defects; do not globally join all nearby endpoints.
- A branching web or missing geometry inside a filled shape: the image may describe an area rather than a stroke. Use Contour Vectorization when its boundaries matter, or prepare a genuine line drawing instead.
- Unexpected extra marks or cuts: check duplicates, connecting paths and operation assignments in the machine preview. Remove unwanted geometry without deleting separate details that happen to sit close together.
Check the file before engraving, cutting, or plotting
- Compare the result with the source: inspect missing strokes, false branches, punctuation and letter loops.
- Verify center paths rather than doubled outlines and remove unintended duplicate segments.
- Confirm connections at junctions while preserving separate strokes, open ends and intentional gaps.
- Check imported dimensions, curve quality and feature spacing at the intended physical size.
- Select only the production paths; exclude page borders, annotations and other unwanted drawing content.
- Assign the correct operations and tool or machine settings, preview travel and passes and test a representative sample.

Comments
Loading comments...