neocotic / convert-svg

Node.js packages for converting SVG into other formats using headless Chromium
MIT License
198 stars 45 forks source link

Added new scale option to API & CLI #11

Closed neocotic closed 7 years ago

neocotic commented 7 years ago

This PR delivers what was requested in #3.

I've added a new scale option to the API and CLI which, when defined, is applied to either the specified (via options) width and height or those derived from the SVG input.

The default scale is 1, which means the width/height are used as-is, without any scale being applied.

neocotic commented 7 years ago

I accidentally merged this PR into master so I had to revert it (see PR #12), however, the changes are now correctly in develop and will be included in the upcoming 0.2.0 release.