Stockio

How to Vectorize an Image: Raster to SVG

Learn how to vectorize an image in Inkscape, clean up traced paths, and save a usable SVG for logos, simple illustrations, and scalable graphics.

By Aiko Tanaka

Motion Designer ·

On this page

To vectorize an image, trace its visible shapes into editable paths in a vector editor, clean up the result, and save it as SVG or another vector format. Inkscape offers a free desktop route through Path > Trace Bitmap.

Automatic tracing works best for simple logos, silhouettes, and high-contrast artwork. It is less suitable for realistic photographs, where thousands of tiny shapes can create a large, awkward file without reproducing the original appearance convincingly.

Decide whether tracing suits your image

A vector image describes shapes with paths, fills, and strokes rather than a fixed grid of colored pixels. Those shapes can scale without the blocky pixelation of an enlarged raster image.

PNG and JPG are raster formats. SVG can contain true vector shapes, but it can also contain embedded raster images. Simply putting a photograph inside an SVG does not turn the photograph into editable vector artwork.

Good candidates for tracing include a bold hand-drawn symbol, a one-color badge, or a flat illustration with clearly separated regions. Difficult candidates include soft shadows, complex textures, low-resolution lettering, and detailed photographs.

Before tracing a logo, look for its original SVG, EPS, or other vector master. Recovering an existing master is usually better than reconstructing a compressed preview. Only trace artwork you own or have permission to adapt, especially when preparing files for commercial use.

Prepare a clean raster source

A strong source bitmap saves cleanup time. Tracing software interprets visible contrast, including dust, JPEG artifacts, and rough edges you may not intend to preserve.

  1. Choose the largest clean original available.
  2. Crop out unrelated margins and surrounding objects.
  3. Straighten the artwork if it was photographed at an angle.
  4. Improve contrast when the design should be a clear dark shape on a light background.
  5. Remove obvious stray marks before importing it into the vector editor.

Do not expect enlargement to recover missing contours from a tiny thumbnail. It may make the pixels larger, but the tracing tool still has to guess where the intended boundaries belong.

For a two-color emblem, a clean PNG is often a useful source because it can avoid additional JPG artifacts around hard edges. Our PNG vs JPG guide explains that distinction. If you need a clean cutout first, see how to make a background transparent.

Trace a simple image in Inkscape

Trace Bitmap converts visible regions into paths. The exact panel layout varies by Inkscape version, but the command remains under the Path menu.

  1. Open Inkscape and use File > Import to bring in the image.
  2. Select the imported bitmap on the canvas.
  3. Choose Path > Trace Bitmap.
  4. For a one-color silhouette, choose the single-scan mode and Brightness cutoff.
  5. Adjust the threshold while watching the preview.
  6. Apply the trace when the silhouette is close to your intended shape.
  7. Move the new vector object aside to compare it with the source.

Inkscape's tracing tutorial explains the command and how the brightness threshold changes which areas become dark shapes. (Inkscape help)

The traced object is normally created over the imported bitmap, which can make it appear that nothing happened. Move it to reveal the original underneath. Keep the source nearby while checking small details, then remove it from the final delivery document if it is no longer needed.

Adjust settings for color and detail

A brightness threshold determines which pixels contribute to a simple dark silhouette. Raising it generally includes more of the image as dark regions; lowering it generally preserves fewer dark regions.

  1. Start with a one-color trace to understand the major outline.
  2. Adjust the threshold until important gaps and counters remain open.
  3. Reduce speckles or noise using the available trace controls.
  4. For flat-color artwork, try the multicolor or multiple-scan options instead.
  5. Keep the number of color regions modest and compare the preview carefully.

Panel labels differ across releases, so use the mode descriptions rather than expecting identical control placement. More scans or colors are not automatically better: they can introduce stacked shapes and make editing harder.

If the artwork contains type, try to obtain the original font or vector lettering. Automatic tracing can distort letter spacing, close small openings, and create uneven curves. Manual reconstruction may produce a cleaner result than repeatedly adjusting the trace.

Clean paths and verify real vector content

Node cleanup turns a rough trace into more useful artwork. Automatic tracing often produces extra points, tiny islands, or slightly wobbly curves that become obvious at large sizes.

  1. Select the vector and inspect it with the node-editing tool.
  2. Delete isolated specks and unwanted shapes.
  3. Smooth awkward curves while preserving intentional corners.
  4. Check that holes inside letters and symbols remain open.
  5. Test the artwork at both a small icon size and a large display size.

Use path simplification cautiously. Reducing points can make a file easier to edit, but aggressive simplification can round corners or change a recognizable silhouette. Undo and compare frequently.

Confirm that selecting the result reveals paths and nodes, not only one rectangular image object. For a cutting-machine workflow, also check for duplicate or overlapping contours that could cause repeated cuts. A graphic that looks correct on screen is not necessarily ready for every production process.

Save and optimize the finished SVG

A clean SVG export should contain the artwork you intend to deliver, without an unnecessary embedded copy of the source bitmap. Keep a separate editable master before optimizing.

  1. Remove unwanted source images and test objects from the delivery copy.
  2. Fit the page to the intended artwork using your version's page-sizing controls.
  3. Save an SVG and reopen it to check the appearance.
  4. Use the SVG Minifier & Optimizer to reduce unnecessary SVG markup.
  5. Compare the optimized file with the master before publishing.

Minification reduces markup; it does not repair rough tracing or turn embedded pixels into paths. For simple artwork, tracing plus careful cleanup can work well. For detailed logos or critical production files, manual redrawing is often the more dependable route.

Featured sponsor

Reach designers & developers at work

Put your product next to the tools people use every day. One sponsor per placement.

Become a sponsor

Keep reading

Related articles

More in Icons & Illustration