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

Conversion Error (Shifted Images) #21

Closed
jrddunbr opened this issue Jun 4, 2018 · 3 comments
Closed

Conversion Error (Shifted Images) #21

jrddunbr opened this issue Jun 4, 2018 · 3 comments

Comments

@jrddunbr
Copy link

jrddunbr commented Jun 4, 2018

Hi,

When converting some VSS stencils for a project I'm working on, most of the stencils come out fine.
Sometimes, they don't come out fine, and are shifted down by about half of the height of the image.

A particular example I have found, from here: https://www.juniper.net/assets/visio-icons/juniper-mx-series-icons.zip

If you extract the zip, and then convert the file, the 10x10GE_MIC.svg file will be incorrectly positioned, with the beginning of the top of the image halfway down the image "space". If I open it in ImageMagic, I can shift it to fit correctly into the viewport, but for the number of conversions I want to do, it's not practical to fix the SVG's individually.

I am entering the following to convert the vss file to svg's:

mkdir outputFolder
vss2svg-conv -i input.vss -o outputFolder

If you could find a fix, that would be super wonderful.

Thanks!

PS. Nice tool/library by the way, it is really helpful. I can't find anything else like it.

@jrddunbr jrddunbr changed the title Conversion Error Conversion Error (Shifted Images) Jun 4, 2018
@kakwa
Copy link
Owner

kakwa commented Jun 4, 2018

Hello,

Thank you for your bug report.

it looks a lot like this other issue:

#15

Unfortunately, I'm not sure I could fix it.

This tool is mainly glue code between a few libraries (libvisio, libemf2svg and libwmf). I only control libemf2svg.

It's most likely a bug in libvisio, I've already posted a bug report there:

https://bugs.documentfoundation.org/show_bug.cgi?id=106344

Unfortunately, this bug is in limbo for more than a year now.

I will check however if it's indeed coming from libvisio.

@jrddunbr
Copy link
Author

jrddunbr commented Jun 4, 2018

Cool, thanks a bunch!

@kakwa
Copy link
Owner

kakwa commented Nov 28, 2018

Sorry for the long delay, this is indeed liked to #15

The issue at play here is already mentioned in: https://bugs.documentfoundation.org/show_bug.cgi?id=106344

Closing this ticket as a duplicate.

In the mean time, the only thing I can suggest is tweaking the conversion result manually in inkscape or any other SVG editor. The issue is that the drawing is not properly centered in the viewport.

@kakwa kakwa closed this as completed Nov 28, 2018
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