jankovicsandras / imagetracerjs

Simple raster image tracer and vectorizer written in JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Soften sharp path vectors

KodeMunkie opened this issue · comments

I've been using this library instead of potrace as it's faster and modern but I've found potrace tends to soften/round its paths (correct term?) so they aren't quite so sharp, whereas I'm unable to do this on imagetracerjs.

Is it possible for you to put in an option please, or have I missed an existing option somewhere?

imagetracerjs and potrace comparison respectively (nb. ignore the palette differences, it is the same image but rotated slightly).
imagetracerjs

potrace

Hi,

I recommend using the curvy option preset or setting options.ltres = 0.01; . See also: https://github.com/jankovicsandras/imagetracerjs/blob/master/options.md

Thanks I've used the ltres option and it's looking very similar now. Amazing software, thanks for making it :)