3 ms·
Thanks for pointing this out. It looks like LibreOffice may handle complex graphics better than wmf2svg. You can do batch conversion with it, too. libreoff
by networked 6y ago
Thanks for pointing this out. It looks like LibreOffice may handle complex graphics better than wmf2svg. You can do batch conversion with it, too.
libreoffice --headless --convert-to svg Popular/tennis.wmf
However, I haven't found a way to preserve the original canvas size. It seems you need to crop the image separately.
inkscape --with-gui --verb FitCanvasToDrawing --verb FileSave --verb FileQuit tennis.svg
I'll try this method and upload the LibreOffice conversions in their own archive if they look good.
Edit: They look good so far. I'll upload them as SVG-LibreOffice.zip when they are done.
- chris_wot 6y agoAny chance you can lodge a bug about the canvas size? It's a bit of a deep bucket, but good to have the issue lodged so eventually we can fix the issue.
- networked 6y agoIt doesn't seem like a bug, more of a missing feature in Draw. What I mean by "not preserving the original canvas size" is that when you run libreoffice some-image.ext, Draw doesn't adjust the page size to the image; it puts the image on its default size page. There are several related feature requests in the issue tracker (though none specifically for headless mode). The most relevant is https://bugs.documentfoundation.org/show_bug.cgi?id=81118 https://bugs.documentfoundation.org/show_bug.cgi?id=81118, which asks for a feature to fit the page size to the drawing. https://bugs.documentfoundation.org/show_bug.cgi?id=49787 https://bugs.documentfoundation.org/show_bug.cgi?id=49787 asks for different page sizes in a single document, which would make it possible to create a page of its exact size for every imported image as a default. The comment https://bugs.documentfoundation.org/show_bug.cgi?id=112888#c1 https://bugs.documentfoundation.org/show_bug.cgi?id=112888#c... links to several more.