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

Missing short line/dots #21

Open
jianhaizhang opened this issue Nov 4, 2020 · 0 comments
Open

Missing short line/dots #21

jianhaizhang opened this issue Nov 4, 2020 · 0 comments

Comments

@jianhaizhang
Copy link

jianhaizhang commented Nov 4, 2020

Dear rsvg maintainters,

I am using rsvg and grImport to convert SVG images to xml file and finally extract shape coordinates. I need to get coordinates of everything in the SVG such as shapes, lines, and even dots.

I suspect the "rsvg_ps" function fails to covert short lines/dots, and accordingly, I am not able to get all coordinates.

The example below reproduces the issue. Is there any solution? Thank you!

[u2.txt](https://github.com/jeroen/rsvg/files/5490658/u2.txt)

library(rsvg); library(grImport)

# First rename the file 'u2.txt' as 'u2.svg'. I cannot upload .svg files, so 'u2.txt' is uploaded.

# The u2.svg contains two paths: path824, path819
rsvg_ps('u2.svg', 'u2.svg.ps')
# In the u2.svg.ps.xml, only the larger path path824 is extracted while path819 is missing.
PostScriptTrace('u2.svg.ps', 'u2.svg.ps.xml')
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

1 participant