Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Width option not working correctl #217

Open
BartvanS opened this issue Apr 30, 2019 · 1 comment
Open

Width option not working correctl #217

BartvanS opened this issue Apr 30, 2019 · 1 comment

Comments

@BartvanS
Copy link

When i give my svg a width this happens:
image

my code:
saveSvgAsPng(document.getElementById(svgId), "Proefdruk.png", {width: '800px'});

the wanted result is more like this, but then with a width of 800px:

image

@exupero
Copy link
Owner

exupero commented May 1, 2019

The width option sets the width XML attribute of the SVG node, which I believe simply crops the contents of the SVG and doesn't resize/stretch it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants