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

migrate from CairoSVG to svglib #36

Closed
wants to merge 2 commits into from

Conversation

jdegenstein
Copy link

This is an untested prototype, but just submitting for consideration. One regression is that this method does not support setting the PNG output size. It is possible to re-add the functionality by performing an intermediate conversion from SVG -> PDF with renderlab, and PDF -> PNG with pymupdf which does support scaling. This could be done with BytesIO to prevent creating an actual file on disk.

@jdegenstein jdegenstein marked this pull request as draft January 5, 2024 16:26
@jdegenstein
Copy link
Author

further info on scaling deeplook/svglib#207

@openvmp
Copy link
Owner

openvmp commented Jan 7, 2024

Thank you! These recommendations have been integrated in #37 .

@openvmp openvmp closed this Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants