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

SVG files in command line / spin off conversion from SVG #75

Closed
edemaine opened this issue May 19, 2022 · 1 comment
Closed

SVG files in command line / spin off conversion from SVG #75

edemaine opened this issue May 19, 2022 · 1 comment

Comments

@edemaine
Copy link
Owner

edemaine commented May 19, 2022

I've written Makefiles to convert SVG to PDF before for papers. I always look at SVG Tiler's source code for how to correctly invoke Inkscape.

Given that SVG Tiler already does this, why not support .svg files on the command line, and convert them as appropriate (-p for PDF, -P for PNG)? This would be especially nice with -j option for multithreading, and -w for watching (#74).

Plausibly this should also be spun off into another tool (svg2, supporting PDF and PNG and any other formats supported by Inkscape), but a fair number of papers probably need both, so including it in SVG Tiler seems nice. My plan is to split off this part of SVG Tiler, and then use it as a library in SVG Tiler.

This existing project has some things to learn from, e.g. automatic detection of number of cores to use.

@edemaine edemaine changed the title SVG files in command line SVG files in command line / spin off conversion from SVG May 28, 2022
@edemaine
Copy link
Owner Author

edemaine commented May 31, 2022

svgink is the spinoff. It already reproduces what SVG Tiler can do, but still need:

edemaine added a commit that referenced this issue Jun 2, 2022
* Much faster conversion
* API change: `convertSVG` no longer produced; use `svgink` instead.
* BREAKING CHANGE: No longer support Inkscape before 1.0.0
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