> [Site index](https://perfectvector.com/llms.txt) — available pages and descriptions.

# ImageMagick PNG to SVG: Check the Tracing Delegate

> Find out whether your ImageMagick PNG-to-SVG command creates paths, which tracing delegate it uses, and why a color image can become a monochrome SVG trace.

Source: https://perfectvector.com/blog/imagemagick-png-to-svg

Language: en
Author: Irene Kim
Published: 2026-11-03T08:00:00+09:00

ImageMagick can produce SVG vector paths from a PNG when its build and configuration provide a tracing route. In our installed ImageMagick 7.1.2-32 setup, `magick color-regions.png traced.svg` used Potrace 1.16 and produced black paths, rather than an embedded PNG. It also lost the original colors and a light-colored region. Check your installed delegate and saved file before deciding whether that command meets your needs.

If you want an online tracing route for the same PNG, [start free with PerfectVector](https://perfectvector.com/convert-png-to-svg) and inspect the preview's color regions and openings. Editing and export require an unlocked result. This guide diagnoses the local ImageMagick route; it does not compare the tools' output quality.

## Start with the symptom, then inspect the pipeline

An SVG that opens successfully can still be unsuitable: it may be monochrome when you needed colors, or contain a raster image when you needed paths. A failed command is a different symptom and needs its actual error message. The filename extension alone cannot settle any of these questions.

A **delegate** is an external program ImageMagick calls for a task. Its [resource documentation](https://imagemagick.org/resources/) describes delegate configuration. Record the actual configuration on your machine; a command copied from another installation can follow a different route.

For this check, you need a copy of your PNG, installed ImageMagick, a terminal, a plain-text editor and an SVG viewer. Keep the source unchanged and give each test output a new filename. Our example also had Potrace installed; that is part of the tested environment, not a dependency every ImageMagick installation necessarily shares.

**Illustration**

![Illustration of a PNG source passing through a configured tracing delegate before inspection of the saved SVG](https://perfectvector.com/blog/imagemagick-png-to-svg/delegate-output.webp)

*Inspect the source, configured tracer and saved SVG as separate stages.*

## 1. Record the installed version and delegate

Run these commands in your terminal:

```bash
magick -version
magick -list delegate
magick -list format
```

Read the delegate list for a `trace` entry and note the program it names. Our list contained this line:

```text
pnm<= trace      "'potrace' --svg --output '%o' '%i'"
```

That is a configuration entry, not a command to paste into your shell. It names Potrace as the external tracing program. The SVG we actually saved also contained `Created by potrace 1.16` metadata, linking that configuration to the observed output.

The [ImageMagick format list](https://imagemagick.org/formats/) is useful for checking format support, but read its SVG rendering notes carefully: Inkscape, RSVG and MSVG input/rendering information does not establish which program traced a PNG into an SVG. Reading SVG and writing a trace are different directions.

### Why another machine may behave differently

The [SVG writer in the official 7.1.2-32 source](https://github.com/ImageMagick/ImageMagick/blob/7.1.2-32/coders/svg.c) includes separate routes for compiled AutoTrace support, a configured TRACE delegate, and an embedded-PNG fallback when no tracing delegate is found in that branch. This is why neither “ImageMagick always traces” nor “ImageMagick only embeds PNGs” is a reliable blanket answer.

The source describes available branches; our actual command establishes which result we obtained. We did not test every branch or a machine without the delegate. The version above is our installed test version, not a claim about the latest ImageMagick release.

## 2. Save an SVG and inspect what it contains

Use your own permitted PNG copy. Our exact test command was:

```bash
magick color-regions.png traced.svg
```

Replace `color-regions.png` with your input filename and use a new output name. If the command fails, retain the error and inspect the configured program before trying unrelated rendering settings. A listed delegate does not by itself prove that its executable is available and working.

Open the saved SVG in a text editor. Look for actual shape elements such as `<path>`, any `<image>` element and its referenced content, and fills on both individual paths and parent groups. A path can inherit a black fill from a surrounding group; the color need not appear on every path line.

In our file, the parent group supplied `fill="#000000"`, two path elements described the retained shapes, and there was no image element. That is real path geometry, but it does not mean the original palette or every region survived. For a mixed or image-based file, use the [SVG raster-content inspection guide](https://perfectvector.com/blog/svg-contains-raster-image) rather than guessing from zoom alone.

## What our color PNG became in this installation

We created an original 320 × 240 RGBA PNG containing a navy rectangular frame with an empty center, a gold circle and a teal triangle on a transparent background. The transparent pixels had white RGB samples. We ran the command above with ImageMagick 7.1.2-32 and installed Potrace 1.16, then inspected the actual SVG source and rendered it independently.

| Check                           | Original PNG  | Actual saved SVG                   |
| ------------------------------- | ------------- | ---------------------------------- |
| Navy frame                      | `#17344d`     | Black geometry retained            |
| Teal triangle                   | `#347f78`     | Black geometry retained            |
| Gold circle                     | `#e5aa39`     | Absent                             |
| Frame opening and outside space | Transparent   | Transparent in the rendered result |
| File structure                  | Raster pixels | Two paths, no image element        |

The [Potrace manual](https://potrace.sourceforge.net/potrace.1.html) explains that non-binary input is converted to black and white using a brightness cutoff. A monochrome tracing route does not carry the source palette through as separate colored regions. In this particular run, the light gold circle disappeared while the darker frame and triangle became black.

Increasing the input resolution or changing the SVG filename cannot turn that monochrome result into a color trace. If the colors carry meaning, select a color-tracing workflow and inspect the resulting regions. If you intentionally need one-color artwork, use the [explicit Potrace PNG preparation and tracing workflow](https://perfectvector.com/blog/potrace-png-to-svg) for control over that separate task.

This was one original color fixture on one installed build, supported by the earlier square-with-hole control. It was a digital file inspection, not an editor-import, print or cut test. The path count describes this output; it is not a quality score.

### Keep size units separate from path structure

Our saved SVG declared `width="320.000000pt"`, `height="240.000000pt"` and `viewBox="0 0 320.000000 240.000000"`. Matching numeric values do not make points, source pixels and SVG coordinates interchangeable. Check the intended physical size separately using the [SVG import-size troubleshooting workflow](https://perfectvector.com/blog/svg-imports-wrong-size).

## Choose the fix that matches the output

| Observed result                                             | Next action                                                                  | Verification                                                                 |
| ----------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| Black paths, but you need color regions                     | Choose a color-tracing workflow                                              | Compare important regions and fills with the original PNG                    |
| Black paths are the intended artwork                        | Keep the monochrome route; inspect missing details                           | Check the silhouette and required openings over a contrasting background     |
| SVG contains an embedded PNG instead of the shapes you need | Check the installed tracing route or use a dedicated vectorizer              | Inspect the replacement file's objects and referenced images                 |
| Delegate-related command error                              | Read the error and check that named program's availability and configuration | Repeat the same small permitted input after correcting that specific problem |
| Paths exist but size is wrong in another app                | Check units and document dimensions separately                               | Confirm the intended size in that receiving app                              |

The command's actual error and your installed configuration should guide the repair. This walkthrough did not reproduce a missing-executable or policy-error environment, so it does not prescribe a universal fix for those errors.

For color artwork that still needs an SVG, PerfectVector provides an online PNG-to-vector workflow. Start with the original PNG and compare the preview's silhouette, color regions and empty spaces. Exact brand colors or small lettering can still need inspection and correction; if a critical contour is unclear, a deliberate redraw may be the more useful next step. The [PNG-to-SVG quality guide](https://perfectvector.com/blog/png-to-svg-without-losing-quality) covers those source and detail decisions.

You have finished the diagnosis when you can name the output type, identify the relevant tracing route and explain whether it meets your color needs. Keep the source, saved SVG and version/configuration notes together. To try your PNG online, [start free with PerfectVector](https://perfectvector.com/convert-png-to-svg) and check the preview's color regions and openings against the original.

## FAQ

**Can ImageMagick convert PNG to real SVG paths?**

Yes, when the installed build and configuration provide a tracing route. Our ImageMagick 7.1.2-32 setup used Potrace 1.16 and saved actual paths without an image element. Inspect your own output rather than assuming every installation behaves the same way.

**Why did my ImageMagick SVG become black and white?**

A configured monochrome tracing delegate can explain that result. In our test, Potrace produced black paths from the darker regions and omitted the light gold circle. Check the delegate list and saved fills before choosing a color-tracing alternative.

**Does an SVG entry in the format list guarantee color tracing?**

No. Format support alone does not identify the output-tracing implementation or prove that it retains your palette. Read the installed delegate configuration and inspect the saved SVG.

**Should I change RSVG or MSVG settings to restore the PNG colors?**

First identify the output-tracing route. SVG rendering settings and the program that traces a PNG answer different questions. Our monochrome result came through a Potrace tracing delegate, so the next decision was whether a monochrome trace suited the artwork.

## Sources

1. [ImageMagick resources](https://imagemagick.org/resources/) — configuration files and external delegates.
2. [ImageMagick image formats](https://imagemagick.org/formats/) — installed format listings and SVG rendering notes.
3. [ImageMagick 7.1.2-32 SVG writer](https://github.com/ImageMagick/ImageMagick/blob/7.1.2-32/coders/svg.c) — version-pinned tracing and embedded-image branches.
4. [Potrace manual](https://potrace.sourceforge.net/potrace.1.html) — monochrome input interpretation and tracing behavior.

## Explore

- [Read the HTML article](https://perfectvector.com/blog/imagemagick-png-to-svg)
- [PNG2SVG Batch Conversion: Check Your Downloaded ZIP](https://perfectvector.com/blog/png2svg-batch-convert.md)
- [Vectorization Org: Check a Black-and-White Trace](https://perfectvector.com/blog/vectorization-org-black-white.md)
- [Product facts](https://perfectvector.com/product-facts.md)
- [FAQ](https://perfectvector.com/faq.md)
- [Pricing and credits](https://perfectvector.com/pricing.md)
