Pixel2Lines is now Laserlinez - Get laser-ready vector files with our advanced algorithms!

Laserlinez
Service
Tonal Line VectorizationSVG
Tonal Line Vectorization
Contour VectorizationSVGDXF
Contour Vectorization
Centerline VectorizationSVGDXF
Centerline Vectorization
Photo to SVG Manual ProSVGPNG
Photo to SVG Manual Pro
SVG to DXFSVG→DXFDXF
SVG to DXF
GalleryPricingAPI
Workspace

Contour Vectorization: From Raster Graphics to SVG and DXF

Learn when to trace a logo or graphic into cutting profiles, how to separate holes from engraving detail and what to check before laser or CNC work.

What is Contour Vectorization?

Contour Vectorization traces the boundaries of shapes in a raster image, such as a PNG logo or a scanned graphic. It turns those pixel edges into editable vector paths around outer shapes, enclosed holes and internal details. Laserlinez provides SVG and DXF output for laser and CNC workflows.

Think of a nameplate with an outside border, two mounting holes and a logo inside. Its perimeter and holes need cutting profiles; the logo may need engraving rather than cutting through. The suggested cut and engraving groups help separate these tasks; you confirm which operation each path needs.

Automatic tracing can save substantial manual drawing time when a customer supplies only a bitmap. You can inspect and refine the generated paths instead of rebuilding each boundary by hand. If you already have a clean vector original, use it directly rather than rasterizing and tracing it again.

Placeholder for image 1: Raster nameplate graphic
Image 1 — Raster source (placeholder). Use an original PNG badge or nameplate on a plain or transparent background, with a straight edge, a rounded corner, two mounting holes and a logo intended for engraving. Include enclosed letter counters and white lettering. State pixel dimensions and intended plate width and hole diameters separately; use the same crop for image 2.
Placeholder for image 2: Matching Contour vector result
Image 2 — Actual Contour result (placeholder). Show the unretouched SVG from image 1 as strokes without fills, at the same crop and scale. Add a close-up of a curve and corner with nodes visible. State the preset version; show any manual cleanup separately and label it. Do not substitute a hand-drawn result.

When to use Contour Vectorization

Choose Contour when the edges of a graphic define the shapes you want to cut or mark. Clear silhouettes and flat graphics are stronger starting points than photographs with shadows and texture.

  • Logos, badges and nameplates: recover editable boundaries from a customer's PNG or JPEG and separate cut-through features from engraved detail.
  • Signs, lettering and panels: prepare outer profiles and internal openings for laser cutting or CNC routing. Check small letters, narrow connections and mounting features at the final size.
  • Cut-and-engrave products: keep the perimeter, holes and internal markings aligned in one design, then assign different operations in your laser software.
  • Stencils and templates: trace the openings, then check which pieces must remain connected. Stencil bridges and workholding still require deliberate design decisions.

Contour, Centerline, or Tonal: choose by the paths you need

  • Contour Vectorization follows shape boundaries. Choose it for the perimeter of a logo, cut-out lettering, or holes within a part.
  • Centerline Vectorization follows the middle of existing strokes. Choose it for line drawings, signatures, or lettering when the machine should follow the drawn line rather than both edges of its thickness.
  • Tonal Line Vectorization describes contrast, texture and structure using many vector lines. Choose it for detailed photographic linework, illustration, or vector engraving—not for closed part profiles.

Understand the three production groups

The group names describe intended roles, not machine settings. Use them to review the design before assigning cutting, scoring, or engraving operations.

  • CUT_OUTER: the outside boundary of a part. For a cut-out badge, this separates the finished badge from the surrounding material.
  • CUT_HOLES: enclosed openings intended to be cut through, such as mounting holes or cutouts inside the part.
  • DETAIL: internal paths intended for vector engraving or scoring rather than cutting through. Scoring marks a line on the surface without separating the material.
A raster image cannot explain every operation

The same circle could mean a through-hole, an engraved ring, or a pocket. White lettering inside a dark badge may need to be engraved, not cut out as holes. Check each assignment against the intended product and move paths to the appropriate operation in your laser or CAM software. Layer names and colors alone do not determine what the machine will do.

Placeholder for image 3: Cut profiles and engraving detail
Image 3 — Production-group anatomy (placeholder). Annotate the actual result with the intended CUT_OUTER, CUT_HOLES and DETAIL roles, including the engraved logo's letter counters. Include an imported objects or layers panel and distinguish intended roles from the names actually preserved by the software. Disclose any manual reassignment or renaming. Use text labels as well as colors; do not fabricate export structure.

Prepare a source with clear boundaries

Use the sharpest original JPEG or PNG available. Resolution matters because each important corner, gap and hole must be visible—not because a particular pixel count guarantees a usable trace.

  • Inspect at full resolution: look for distinct foreground edges, readable lettering and open gaps. Enlarging a blurry thumbnail does not restore missing geometry.
  • Prefer the cleanest export: JPEG compression can leave speckles or halos along edges that become rough or extra contours. Use a clean PNG original when available and retain useful transparency rather than flattening it onto a colored or textured background.
  • Remove distractions: crop unrelated objects and remove decorative shadows, glows, or textured backgrounds. If a gradient obscures a boundary, use a flat-color version of the graphic. Preserve intentional holes, dots and narrow connections.
  • Review at the intended size: details that look clear in a large image may be too small for the material, laser kerf, or router bit. Kerf is the width of material removed by a cut.
  • Prefer a flat source: a straight-on scan or exported graphic is more reliable than a photograph taken at an angle. Tracing does not correct perspective or recover hidden dimensions.

How to convert a raster graphic into SVG or DXF

  1. 1

    Prepare and upload the graphic

    Open the Contour Vectorization service page and drop your JPEG or PNG there to open the workspace with this preset selected. Alternatively, upload in the workspace and select Contour Vectorization.

  2. 2

    Render and compare the shapes

    Remove Background is on by default for Contour. Generate the result and compare the silhouette, openings, lettering and small features with the source. If parts disappear or openings change unexpectedly, try rendering with Remove Background switched off and compare. If important edges are unclear, improve the source image before editing the paths.

  3. 3

    Review the paths and operation roles

    Inspect the vector result in a suitable editor. Check that cut boundaries are closed and that engraving detail has not been mistaken for a through-hole. Remove unintended duplicates without deleting separate, closely spaced features. Keep an unchanged copy before editing.

  4. 4

    Export, set the size and preview the job

    Download SVG or DXF for your target software. Confirm the intended physical dimensions, assign the laser or CAM operations and inspect the complete job preview. Test a representative sample before committing to the finished material or a batch.

SVG or DXF: choose the format your workflow needs

SVG is useful for vector editing and laser software such as LightBurn. DXF is commonly used for CAD/CAM handoff. Both describe geometry; switching file formats does not repair a poor trace or create machine instructions.

After import, set or verify a known overall dimension with the aspect ratio locked. Check at least one internal feature as well. A raster logo does not establish its real-world size and a correct overall width does not prove that a traced mounting hole has the required diameter.

Confirm the import units, especially with a unitless DXF. In LightBurn, check DXF import units or SVG import settings if the size is wrong. Correct the scale before applying kerf or tool compensation.

Prepare the contours for laser cutting and engraving

In LightBurn, Line mode follows the paths. Whether that cuts through or only scores the surface depends on the machine, material, power, speed and passes. Fill mode engraves enclosed areas; use it only where a filled result is intended, not simply because a contour is closed.

Complete engraving and enclosed cuts before releasing their containing part. For nested pieces, a single layer order may not be sufficient. LightBurn's Cut inner shapes first works within its configured ordering groups, so inspect the full preview rather than relying on the option or layer names alone.

For fitted parts, allow for the material removed by the beam. Apply appropriate kerf compensation in your laser software and test the fit. A thicker or thinner display stroke in the SVG does not change the laser's physical cut width.

Prepare the contours for CNC routing

Import the DXF into compatible CAM software and create the required toolpaths. For profile cutting, choose the correct side of the vector: normally outside a part and inside a hole. Select the cutter, cutting depth, feeds, passes and workholding for the job; add tabs or lead-ins where needed. Vectric's 2D Profile toolpath orders nested inner vectors before outer vectors; still check the complete job preview, including separate operations.

Check whether the cutter can reach narrow openings and internal corners. A round end mill leaves an inside corner radius. If a square-cornered mating part needs to fit, consider corner relief such as dogbone fillets where the design allows it, or adjust the design or tooling.

The result is 2D boundary geometry, not a 3D model or controller-ready G-code. Generate machine code in your CAM software with the post-processor for your controller.

A cut-out letter and a stencil need different treatment

For a cut-out letter O, the middle normally falls away as scrap. In a stencil, that same middle must remain attached to the sheet or the letter loses its shape. Add deliberate bridges where needed; do not assume that tracing creates them. Small disconnected pieces also need suitable workholding.

Placeholder for image 4: Cut-out letter and stencil bridges
Image 4 — Cut-out versus stencil (placeholder). Compare a cut-out letter O with an O-shaped opening in a stencil sheet. Label retained material and scrap, then show the stencil with manually added bridges retaining its center. Clearly identify the bridges as a design edit, not automatic preset output.

Common contour problems and what to check

  • Jagged edges or excessive nodes: inspect the source for compression and pixel stair-steps. Start with a cleaner graphic, then simplify selectively while preserving corners and small features.
  • Missing holes or unwanted cutouts: compare with the source and the intended product. If openings or small features change unexpectedly, compare results with Remove Background on and off. A white region is not automatically a through-hole. Check the geometry and operation assignment separately.
  • Repeated cuts or dark edges: inspect for duplicate or overlapping paths in the machine preview. Two edges around a thick source stroke are not necessarily duplicates; use Centerline if you need a path down its middle.
  • Tiny gaps in a cut boundary: inspect and repair the affected profile. Do not close every open path automatically, because intentional engraving detail may contain open segments.

Check the file before cutting or engraving

  • Confirm the overall size, import units and critical internal dimensions in the target software.
  • Compare the silhouette, holes, lettering and small features with the original graphic.
  • Verify that cut profiles are closed, without unintended crossings, duplicates, or overlapping segments.
  • Confirm which paths should cut through, score, engrave, or remain unused. Preserve intentional open detail paths.
  • Check narrow connections, stencil islands, tool access, compensation and workholding for the actual material.
  • Preview the execution order, then test a representative sample using suitable machine and material settings.
Placeholder for image 5: Real cut-and-engraved sample
Image 5 — Verified physical sample (placeholder). Photograph the finished badge from images 1–3 with its cut perimeter, mounting holes and engraved detail visible. Show the overall width and a caliper measurement of one hole beside their intended dimensions. Record material, thickness, machine, settings, kerf compensation, preset version and vector edits. Use a real result, not a mockup.

FAQ

A photograph can be useful when it shows a clear silhouette against a distinct background. Shadows, reflections and texture can also become boundaries, so check the interpretation carefully. Use Tonal Line Vectorization when you want detailed photographic linework rather than cutting profiles. A photo of a part is not a reliable source of manufacturing dimensions.

A raster stroke has a width. Contour tracing follows its boundaries, so a simple stroke becomes an outline around that width. Those opposite edges are different geometry, not duplicate copies of the same path. Choose Centerline Vectorization when you want the machine to follow the middle of the stroke instead.

Cut profiles in CUT_OUTER and CUT_HOLES should be closed. DETAIL can include open segments, for example an engraved line that ends at a cut edge. Inspect open paths by their role; automatically closing all of them can add unwanted lines.

Use tracing as a starting point, not as dimensional verification. Pixel resolution, blurred edges and perspective can change the geometry. Set a known size, rebuild critical holes or fits from measured dimensions, account for kerf or cutter diameter and test the result. A scalable vector file is not automatically an accurate technical drawing.

No. The files provide editable vector geometry, not a configured machine job. Treat any group names and colors as suggested roles and check how the paths import into your software. Assign speed, power, passes, or CNC toolpaths, then verify the scale and job preview. For CNC, generate G-code using a post-processor that matches your controller.

Continue with your workflow

SVG or DXF for your workflow

Understand the formats before handing a vector file to laser or CAD/CAM software.

Tonal Line Vectorization guide

Create detailed SVG linework from photos when outlines alone would lose important information.

Centerline Vectorization

Trace along the middle of drawn strokes for line-following workflows.

Try Contour Vectorization with your graphic

Start with a clear-edged JPEG or PNG, then review the paths for your laser or CNC workflow.

Open Contour Vectorization

Want to clean or measure your SVG first?

Inspect dimensions and edit paths in your browser, without uploading.

Open Free SVG Editor

Comments

Please login or create an account to write a comment.

Login or Signup

Loading comments...

Laserlinez

Cut-ready SVG and DXF contours for laser and CNC.

Open Workspace

1 file = 1 credit · from $0.10

Services

  • Contour VectorizationSVGDXF
  • Centerline VectorizationSVGDXF
  • Tonal Line VectorizationSVG
  • Photo to SVG Manual ProSVGPNG
  • SVG to DXFDXF

Resources

  • Gallery
  • API
  • Technology
  • Helpful Guides
  • All conversion tools→

Company

  • Pricing
  • About Us
  • Custom Development
  • Contact

Compatible with LightBurn, xTool and CNC

  • Legal
  • Privacy Policy
  • Terms
  • Cookies