SvgTracing (svg_tracing v0.1.5)

An open source software to convert raster images (like jpg & png) into vector graphics (svg). It can vecterize graphics and photographs and trace the curves to output compact vector files. This is backed by rust (vtracer) using rustler.

iex> SvgTracing.trace("priv/static/ikea-sofa.png", "priv/static/ikea-sofa.svg") {:ok, {}}

Summary

Functions

Convert images to vector graphics, this will need two paths, input image path and second output image path to save svg.

Functions

Link to this function

start(ab, args)

Link to this function

trace(input_path, output_path)

@spec trace(String.t(), String.t()) :: {:ok, {}} | {:error, String.t()}
@spec trace(String.t(), String.t()) :: {:ok, {}} | {:error, String.t()}

Convert images to vector graphics, this will need two paths, input image path and second output image path to save svg.

iex(1)> SvgTracing.trace("priv/static/ikea-sofa.png", "priv/static/ikea-sofa.svg") {:ok, {}}