'ImageMagick: How to fix delegate failed `'potrace' error

I am trying to convert a PDF to SVG with Image Magick. I run the following command:

magick input.pdf output.svg

I get the following error:

magick: delegate failed `'potrace' --svg --output '%o' '%i'' @ error/delegate.c/InvokeDelegate/1911.

How does one fix this?


Solution 1:[1]

Install the potrace dependency:

brew install potrace

Once installed, the original command worked for me.

The error is happening because ImageMagick relies on Potrace, which was not installed on my machine.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Daniel Apt