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

Inkscape Alternatives #32

Open
BrendonChau opened this issue Sep 5, 2024 · 0 comments
Open

Inkscape Alternatives #32

BrendonChau opened this issue Sep 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@BrendonChau
Copy link

I mostly use diagram to generate TikZ figures and embed them into a web page on the fly, Inkscape is a pretty heavy dependency for this and generates these (ignorable) warning messages when I render a Quarto website using a GitHub Action,

** (inkscape:4065): WARNING **: 21:41:21.937: No pages selected, getting first page only.

** (inkscape:4065): WARNING **: 21:41:22.079: Failed to wrap object of type 'GtkRecentManager'.
Hint: this error is commonly caused by failing to call a library init() function.

Both of these warnings seem to be upstream to Inkscape and are unrelated to Quarto or pandoc.

For conversion from PDF to SVG, a good alternative seems to be dvisvgm. It is fairly light in comparison to Inkscape and only depends on having Ghostscript and mupdf-tools available. dvisvgm is also available on CTAN so it should be simple to embed into a CI workflow. Alternatively, the poppler library provides pdftocairo which can also generate SVG files from PDF or you could use mupdf-tools directly.

However, dvisvgm can also convert from LaTeX DVI output to SVG which is a nice feature. Benchmarks here (not mine).

@tarleb tarleb added the enhancement New feature or request label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants