jankovicsandras / imagetracerjs

Simple raster image tracer and vectorizer written in JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transparent areas are made in images without any transparency

quinton-ashley opened this issue · comments

I'm wondering if there might be an option for stacking SVG shapes so there's no transparent background showing up. Right now I'm getting a lot of transparent spots in the SVG files so when I export using a black background it shows through a lot. Maybe the background could be filled by the original image?
z001010
z001010
Here's what an inkscape render would look like if image tracer output an svg using the original image as the background:
z001010

Hi,

I recommend you setting options.pathomit = 0 and maybe options.strokewidth = 2 (or more).
You can also try the older 1.1.2 version ( Readme for 1.1.2 ) : that is stack based, so it can't have transparent holes.

Please give me a feedback whether these work or not! ☺

I hope these worked, please reopen the issue if not.

Thanks for adding the stack based version as an option in the latest version! I will try it out.