Skip to content
New issue

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

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

Already on GitHub? # to your account

Not flat #3

Open
cyrilchapon opened this issue May 23, 2018 · 3 comments
Open

Not flat #3

cyrilchapon opened this issue May 23, 2018 · 3 comments

Comments

@cyrilchapon
Copy link

I have an image with 2 polygons.

When I run potrace, it serves a unique path with a M for breaking the 2 paths.

I'd need actually 2 paths. native Potrace has a --flat option. I tried

potrace.trace({
  flat: false
})

But it doesn't work. Is this intended ?

@iwsfg
Copy link
Owner

iwsfg commented May 24, 2018

Such option is not supported at the moment. The way it renders SVG is pretty much set in stone now and does not allow for configuration.

No ETA, but I'll try to add this option when I get time. Hopefully this weekend

@cyrilchapon
Copy link
Author

Great to hear :)

FYI in here we're using this module in production, not to posterize some memes in any way.

We're vectorizing WMTS raster tiles from a server that serves .png. This is a temporary step to convert png to Geojson ! :)

@sodevrom
Copy link

Hello,
Any update on this ?
I am using the original potrace on windows, and it splits the image in multiple paths.
tare22
For example this simple text, converted using windows potrace (original one), returns an individual path for each letter.

With your library, it gives one single path for the entire image.
Any solutions?
Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants