vtracer
vtracer copied to clipboard
Default output from webapp doesn't match cmdapp
I am getting vastly different results when using the webapp vs the cmdapp. I was expecting them to be the same, but maybe that is not the case? Do you have any advice regarding how to get similar output from the cmdapp as the webapp?
Input image:
Webapp output:
Cmdapp output:
The command I called (argument values match the webapp):
vtracer
--filter_speckle=4
--color_precision=6
--gradient_step=16
--mode=spline
--corner_threshold=60
--segment_length=4
--splice_threshold=45
--hierarchical=stacked
--colormode=color
--input=cat.png
--output=out.svg
vtracer --version
visioncortex VTracer 0.4.0
Seems like the clustering step produces nothing. Can you try one of the presets, i.e. poster
?
I tried the poster
preset as well as the others but it didn't change the output.
Oh then it can be down to how the image
crate decodes image differently than the browser, specifically something about the alpha channel? e.g. I don't think it can handle indexed alpha
You are correct. Adding a background solves the issue. Thanks!