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

convert-svg-to-png options do not override fixed SVG size #58

Open
lietusme opened this issue Feb 27, 2019 · 0 comments
Open

convert-svg-to-png options do not override fixed SVG size #58

lietusme opened this issue Feb 27, 2019 · 0 comments

Comments

@lietusme
Copy link

To ensure that SVG rendered correctly, I tried using w3 provided samples:
https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/

But seems that fixed size SVGs do not resize, like this one:
https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/Test.svg

convertFile() with options did produce specified dimensions PNG image, but SVG graphic was left in top-left corner in original size. Small dimensions just crops graphic.

This can be worked around by using non-fixed size SVGs, but is unexpected generally.

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