Convert JPG to SVG in Inkscape: Tracing a Logo Sketch into Vector Paths
Inkscape can convert a JPG or PNG into SVG vector paths with Trace Bitmap. Learn how to prepare a logo sketch, trace it, clean the paths and confirm the file is truly vector.
Contents
The short answer
Yes, Inkscape can turn a JPG into an SVG with real vector paths, but only through tracing. Opening a JPG and saving it as SVG does not vectorize anything. The result is an SVG file that contains the original JPG as an embedded or linked raster image. To get editable vector shapes, you need to run Path > Trace Bitmap on the imported image (or redraw it by hand), then delete the original bitmap and save the traced paths.
The same process applies to PNG files and other bitmap formats. For a hand-drawn logo sketch, tracing is usually a starting point rather than a finished logo: the automatic result typically needs simplification, node cleanup, color assignment and sometimes manual redrawing before it is suitable as production artwork.
Vector paths, embedded images and previews
Three different things can sit behind a file that ends in .svg, and the extension alone does not tell you which one you have:
- Vector artwork: shapes defined as paths with nodes and curves. These scale without pixelation and can be edited node by node.
- Embedded raster image: a JPG or PNG stored inside the SVG. It looks like a logo but behaves like a photo, blurring or pixelating when enlarged.
- Raster preview: a bitmap thumbnail or placeholder included alongside or instead of the artwork. It can look correct on screen while containing no editable geometry.
The goal when converting a sketch is to end with only the first kind. A final inspection step, covered below, confirms this.
Before you start: rights and source material
If the sketch is your own, or you are working on it for its owner, tracing it is straightforward. If the image is an existing logo you found or downloaded, being able to download it is not the same as having permission to modify the artwork, reuse its fonts or use the trademark. Confirm those rights separately before reconstructing someone else's mark.
Tracing quality depends heavily on the input. For a hand-drawn sketch, the following usually improves results:
- Ink the final lines in a dark, even pen and erase or avoid pencil construction lines.
- Scan the drawing rather than photographing it if possible, so lighting is even and the page is flat.
- If you photograph it, shoot straight on in diffuse light to avoid shadows and perspective distortion.
- Crop to the logo and, if needed, raise contrast in a raster editor so lines are dark and paper is close to white.
- Prefer PNG or a high-quality JPG. Heavy JPG compression adds blocky artifacts around edges that the tracer may pick up as noise.
How to trace a JPG or PNG into SVG paths in Inkscape
Menu names and dialog layouts vary somewhat between Inkscape versions; the steps below follow the Inkscape 1.x layout.
- 1. Create a new document and use File > Import (Ctrl+I) to bring in the JPG or PNG. Choosing Embed or Link at this stage does not matter for tracing, because the bitmap will be deleted afterward.
- 2. Select the imported image and open Path > Trace Bitmap (Shift+Alt+B).
- 3. Choose a detection mode (see the table below). For a single-color sketch, start with Brightness cutoff in single-scan mode.
- 4. Adjust the threshold and use the preview to check that lines are captured fully without filling in paper texture.
- 5. Set the cleanup options: suppress speckles to drop small noise specks, smooth corners as appropriate for the design, and optimize to reduce node count.
- 6. Click Apply. Inkscape places the traced result directly on top of the original image.
- 7. Move the traced paths aside or select the original bitmap underneath and delete it.
- 8. Inspect, clean up and save, as described in the following sections.
| Mode | What it does | When it fits a logo sketch |
| Brightness cutoff (single scan) | Fills everything darker than the threshold as one shape | Clean black-on-white ink drawings; the most common starting point |
| Edge detection (single scan) | Traces boundaries between light and dark areas | Outline-style results; often produces doubled edges on sketches |
| Color quantization (single scan) | Groups pixels into a limited set of colors, then traces boundaries | Images with distinct color regions |
| Centerline tracing | Traces down the middle of strokes to produce single lines instead of filled outlines | Line-art logos where you want editable strokes rather than filled shapes |
| Multiple scans (brightness steps, colors, grays) | Produces a stack of shapes, one per level or color | Colored or shaded artwork; usually needs more cleanup for a flat logo |
| Pixel art | Traces hard-edged pixel graphics | Pixel-based logos; not intended for scanned sketches |
One distinction matters for sketches specifically: Brightness cutoff traces the outer edges of each ink line, so a pen stroke becomes a thin filled shape with two sides. Centerline tracing aims to give a single path through the middle of each line, which can then be given a stroke width. Which one is right depends on whether the logo should be built from filled shapes or from uniform strokes.
Cleaning up the traced paths
Automatic tracing reproduces wobbles from the hand-drawn line, adds more nodes than a logo needs and can leave small fragments. Typical cleanup steps:
- Switch to outline display mode (View > Display Mode) to see the actual path geometry without fills.
- Delete stray fragments left from paper texture, smudges or JPG artifacts.
- Use Path > Simplify (Ctrl+L) to reduce node count. Apply it cautiously, since repeated simplification rounds off corners and changes the design.
- Use the Node tool (N) to straighten lines that should be straight, sharpen corners that should be crisp and even out curves.
- If the trace produced one combined path, use Path > Break Apart to separate elements that need different colors, then recombine as needed.
When to redraw instead of relying on the trace
For logos, a common approach is to use the scan or the trace as a guide rather than the final artwork. Lower the bitmap's opacity, place it on a locked layer, and redraw the shapes on a new layer with the Bezier (Pen) tool (B) and geometric shape tools. This takes longer, but it gives deliberate curves, fewer nodes and consistent geometry, which is generally what distinguishes a finished logo from a traced sketch. Deciding when the trace is good enough is an editorial judgment that depends on the logo's style and intended use.
Text and lettering
Tracing converts lettering into shapes, not editable text. Hand lettering is usually best kept as cleaned-up paths. If the sketch indicates a standard typeface, setting the text with that font and converting it with Path > Object to Path may give cleaner results than tracing, provided the font's license permits use in a logo. Once converted, the text is no longer editable as type, so keep a separate copy if you may need to change wording.
Color
A single-scan trace comes out in one fill color. Set fills and strokes through Object > Fill and Stroke (Ctrl+Shift+F), entering exact color values if the brand has defined ones. Multiple-scan traces from colored images often produce many near-identical shades stacked on top of each other; for a flat logo, it is usually cleaner to reduce these to the intended colors or rebuild the color regions manually.
Saving and checking the SVG
Use File > Save As and choose an SVG option. Inkscape SVG keeps Inkscape-specific information such as layer names, which is useful for your working file. Plain SVG drops that extra data and is generally a better fit for handing the file to other software or people. An optimized SVG option, where available, can further reduce file size but may alter structure, so check the result afterward.
Before delivering the file, confirm it really is vector:
- Open Edit > XML Editor (Ctrl+Shift+X) and look through the elements. Traced artwork appears as path elements. If an image element is still present, the original bitmap was not deleted.
- Zoom in far on curves and edges. Vector paths stay sharp; an embedded bitmap pixelates.
- Check in outline view that there are no hidden duplicate shapes, leftover fragments or shapes outside the page.
- If text was used, confirm it has been converted to paths or that the recipient has the font and license.
- Reopen the saved file to make sure it displays as expected.
An illustrative comparison of what to look for in the SVG markup (attribute values shortened):
<!-- Still a raster image inside an SVG: not vectorized -->
<image href="data:image/jpeg;base64,..." width="..." height="..." />
<!-- Traced vector artwork: editable paths -->
<path d="M 12.5,40.2 C 18.1,22.7 ..." style="fill:#000000" />
Gaps in this guide
No source-specific evidence was supplied for this article, so it does not give recommended threshold values, node counts or settings tuned to particular sketches; those depend on the image and should be found by adjusting the preview. Menu paths and option names follow Inkscape 1.x and may differ in other versions. No testing or comparison of trace quality across file types or Inkscape releases is reported here.