Image to SVG Vectorizer (Laser Cutting and CNC)

Convert logos and photos into clean vectors. Optimized for LightBurn and laser machines.

1. Base Image

2. Pre-Processing

128
0px

Useful for photos or messy strokes.

100%

3. Potrace Algorithm

0.2

Changes how pixels connect at intersections.

Preview

Scroll: Zoom | Drag: Move


Master Guide: Image Vectorization for Laser Cutting and CNC

Welcome to the ultimate digitization tool. Our Image to SVG Vectorizer is not a simple filter; it's an advanced processing engine based on the Potrace algorithm, designed specifically for the demands of digital manufacturing (Laser Cutting, CNC Engraving, and Vinyl Cutters). If you've ever tried to engrave a logo downloaded from the internet and the edges were jagged, pixelated, or your machine made erratic movements, you are in the right place to solve that problem forever.

The Big Problem: Bitmap (Raster) vs. Vectors

[Image of raster pixel grid versus vector mathematical path]

To understand why you need this tool, you must understand how your laser machine "sees". Common image formats (JPG, PNG, WEBP) are Bitmaps (Raster). This means they are made up of thousands of tiny colored squares called pixels. When you zoom in heavily on a JPG, you clearly see those squares.

A laser machine can engrave pixels (scan/engrave mode), sweeping left to right like an inkjet printer. However, to <strong>CUT</strong> a material or do a high-speed <strong>LINE ENGRAVE (Score)</strong>, the laser needs a continuous path to follow. That continuous path is called a Vector. An SVG (Scalable Vector Graphics) file doesn't store pixels; it stores mathematical formulas (X/Y coordinates, lines, and Bézier curves) that tell the laser head exactly where to travel with micrometric precision, no matter how much you scale the design.

Phase 1: The Art of Pre-Processing

[Image of image thresholding converting grayscale to binary black and white]

The vectorization algorithm only understands two colors: pure White and Black (Binary). It doesn't understand grays, shadows, or gradients. Therefore, before vectorizing, we must "translate" your color or grayscale image into a binary map. This is where the Pre-Processing controls give you superpowers:

  • Threshold: This is the most important filter. It defines the cutoff point. On a scale of 0 (black) to 255 (white), a threshold of 128 means any pixel darker than 128 will become pure black, and any pixel lighter will become pure white. If your original image is very dark, lower the threshold so you don't lose details. If it's a very light pencil sketch, raise the threshold to capture the fine strokes.
  • Blur: Sometimes, the edges of a low-quality JPG have "compression artifacts" (tiny gray pixels around the lines). If you vectorize that directly, the edge will be jittery. Applying a slight Blur blends those pixels before the threshold is applied, resulting in a much smoother base curve for the algorithm to follow.
  • Invert and Ignore White: For laser cutting, we usually want to cut the outline of black objects. "Ignore White" removes the rectangular background of the image, leaving the vector with transparency. "Invert" swaps black pixels for white and vice versa, vital if you scanned a rubber stamp or a negative logo.

Phase 2: Mastering the Potrace Algorithm Parameters

[Image of bezier curves and vector nodes optimization]

Once the image is black and white, Potrace draws the vectors over it. Configuring these parameters separates a beginner from a CNC design professional:

  • Clean or Turdsize: In technical jargon, this is called "Despeckle". It tells the algorithm: "Ignore any black spot that is smaller than X pixels in size". If you vectorize a scanned pencil drawing, the paper will have texture or dust. Increasing the Turdsize to 3 or 4 will automatically remove all that visual "garbage", leaving only the clean strokes of your drawing without having to delete node by node in Illustrator.
  • Curves or AlphaMax (Corner Smoothing): Dictates how aggressively the algorithm decides if a corner should be a sharp angle or a rounded curve. A low value (e.g., 0.2) will force the system to respect every jagged pixel corner, ideal for digitizing pixel art or QR codes. A high value (e.g., 1.2) will smooth everything out, creating fluid curves perfect for cursive typography, human silhouettes, and organic logos.
  • Simplification (OptTolerance): ATTENTION RUIDA LASER USERS! This is your lifesaver. A vector can have the same shape using 10 nodes or 1000 nodes. If your vector has too many nodes close together, your CNC machine's controller will choke processing microscopic commands, causing the laser to stutter, vibrate, over-burn corners, or sound like it's breaking. Optimization Tolerance drastically reduces the number of nodes (anchor points) by joining nearly straight segments, creating an ultra-lightweight SVG file that your machine will cut like butter at maximum speed.
  • Turn Policy: When the algorithm reaches an intersection where four pixels touch at the corners (forming an X), it must decide how to route the line. The "Black" option will join the black pixels, crossing the line. The "White" option will join the white ones, separating the black elements. Playing with this parameter solves 99% of cases where small letters (like "a" or "e") lose their center hole when vectorizing very thin fonts.

Common Workflows in the Maker Workshop

Apply specific settings depending on the type of job a client sends you:

  1. Digitizing Kids' Drawings: A classic Mother's Day gift. Scan the child's drawing, upload it here. Use a high Threshold to catch the crayon strokes, apply a Blur of 1 or 2 to unify gaps in the stroke, and increase the AlphaMax so the laser doesn't make sharp, jagged cuts. Engrave the result on a wooden cutting board.
  2. Recovering Low-Quality Logos: The client sends you their logo in a 200x200 pixel JPG via WhatsApp. Upload it, slightly increase contrast and blur. Lower the Optimization Tolerance to 0.2 to maintain strict geometry. Download the SVG, open it in LightBurn, and put it on a Cut layer to make a 3D sign in MDF or acrylic.
  3. Vectorizing QR Codes for Engraving: QR codes must be mathematically precise. A QR with rounded edges will be unreadable to the phone. Lower the Blur to 0, lower AlphaMax to 0 (zero curves, purely straight corners), and set Turn Policy to "Black". You will get a perfect vector QR, with no resolution loss when scaling.

Preguntas Frecuentes (FAQ) del Vectorizador

Why does the exported SVG show up with "double lines" in LightBurn?

This vectorizer traces the OUTLINE of black objects. If you import a line that was thick in the original JPG, the algorithm will trace the left and right edge of that line, creating a closed contour. If you want to do a single-stroke cut (Centerline Trace), you need specialized software or to draw the line manually. To avoid this in logos, simply set your layer to "Fill" mode in LightBurn instead of "Line".

Can I vectorize color photographs with this tool?

Not directly. This tool is optimized to generate solid single-color vectors (especially logos, silhouettes, and text) that laser machines can cut or engrave as vectors. To engrave a realistic photograph on wood, you don't need to vectorize it; you should use the built-in image processing mode in LightBurn (Jarvis, Stucki, or Dither) which works directly with pixels.

I changed the Threshold but the whole image turned black, what did I do wrong?

If you set the threshold to a very high value (e.g., 250), you are telling the program that absolutely everything that is not bright white (255) must become black. If your background image was light gray or cream, it will become a giant black block. Gradually reduce the threshold slider until the background disappears and only your design is visible.