SvgTracing
Elixir Vector Graphics Converter An open source software to convert raster images (like jpg & png) into vector graphics (svg). It can vectorize graphics and photographs and trace the curves to output compact vector files. This is backed by rust (vtracer) using rustler. You need to install rust first.
Binaries
| Binaries | Status |
|---|---|
| MasOS (M2) | Tested ✅ |
Usage
./svg_tracing_macos_m1 input.png output.svgInstallation
If available in Hex, the package can be installed
by adding svg_tracing to your list of dependencies in mix.exs:
you need install rust
def deps do
[
{:svg_tracing, "~> 0.1.4"}
]
end
iex(1)> SvgTracing.trace("priv/static/ikea-sofa.png", "priv/static/ikea-sofa.svg")
{:ok, {}}
#### Input Image:

#### Output SVG:

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/svg_tracing.