Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svgRenderType : Trace #29

Open
willyk26 opened this issue Mar 8, 2022 · 2 comments
Open

svgRenderType : Trace #29

willyk26 opened this issue Mar 8, 2022 · 2 comments

Comments

@willyk26
Copy link

willyk26 commented Mar 8, 2022

Hi, I'm having trouble getting any result using the trace render type programmatically, I noticed that its not listed in the cli.
is this feature supported outside of the live demo?
my config is as follows

{
"input": ".\test\in\amanocollp3.jpg",
"output": "C:/Users/Willard/svgurt/middle/amanocollp3.jpgoutline2",
"Edge Detection": "true",
"lowThreshold": "128",
"highThreshold": "128",
"Edge Detection": "true",
"lowThreshold": "128",
"highThreshold": "128",
"svgRenderType": "TRACE",
"noiseSize": "45",
"fill": "false",
"stroke": "true",
"directionRandomness": "0.04828301190198645",
"applyFractalDisplacement": "true",
"displacementAmount": "6",
"fractalRandomSeed": "28221",
"strokeWidth": ".085"
}

@Anemy
Copy link
Owner

Anemy commented Mar 12, 2022

Hi @willyk26 I think that part is only in the demo currently and not available programatically.
Under the hood the trace render type is using Potrace: http://potrace.sourceforge.net/
github mirror: https://github.com/skyrpex/potrace
Using that directly is a workaround until this library supports it (not sure when I'll get around to it xD)
Thanks for checking out svgurt! I'll ping back when there's an update on this.

@willyk26
Copy link
Author

@Anemy Thanks for confirming! i had done some poking around and saw that the trace.js is in the Github repository but doesnt show up when installing npm and had been fiddling around to try and make it work.
Im sure potrace will help me out, thanks!
do you know off the top of ur head if potrace or mkbitmap have an edge detection feature like svgurt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants