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

Set size for SVG viewport #41

Open
funkenstrahlen opened this issue Nov 21, 2015 · 4 comments
Open

Set size for SVG viewport #41

funkenstrahlen opened this issue Nov 21, 2015 · 4 comments

Comments

@funkenstrahlen
Copy link

I generate SVGs with this script and convert them to PDF with another tool. However I need to set the SVG viewport size correctly for this to work. For example I need to set it to 22x22px size.

This is currently not possible, right?

@whaaaley
Copy link

yup, i need viewports too

@bhousel
Copy link

bhousel commented Apr 19, 2016

I did need this for another project, and was able to use svg-sprite to package the source images up into an icon sprite file with viewports.

The usage looks something like:

node_modules/.bin/svg-sprite --symbol --symbol-dest . --symbol-sprite <dest.svg> <srcfolder/*.svg>

@Rush
Copy link
Owner

Rush commented May 30, 2017

@bhousel Nice idea, I should probably use this package as well or at least document it.

@hegelstad
Copy link

Sad to see these svgs doesn't support viewport resizing.

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

5 participants