Releases: domenic/svg2png
Releases · domenic/svg2png
4.1.0
Added support for non-ASCII characters in the source SVG (#67, @losnikitos).
4.0.0
No change, but incremented the major version since v3.1.1 accidentally required Node.js v6.0.0 and should have been published as a new major version (i.e. as v4.0.0).
3.1.1
Fixed a regression that broke passing no options in v3.1.0.
3.1.0
Added support for setting a url
or filename
option in order to allow relative URLs to resolve correctly.
3.0.1
- Upgraded PhantomJS to 2.1.x, which could potentially improve support for SVG features and rendering
- Fixed an issue where sometimes the output would be resized incorrectly (#49)
- Tweaked the rendering code a bit more in ways that apparently help on Gentoo (#45, @jkphl)
3.0.0
- Requires Node.js 5.x.
- Changed the API to use promises instead of callbacks.
- Changed the API to accept and output
Buffer
s, instead of filenames.
- Changed the resizing strategy to involve less magic
viewBox
-based inference. Width and height must be explicitly supplied, either via the corresponding attributes in the SVG file or as options.
- Added a synchronous version
- Added a CLI
2.1.0
Added { width, height }
resizing argument as an alternative the numeric scale option (#36, @kasbah)
Fixed percentage widths/heights, in most cases, to be interpreted relative to the viewport instead of as pixel widths/heights.
2.0.0
Forced the output to always be a PNG, instead of letting PhantomJS infer the output format based on the destination file name. (#33, @canac)
1.1.1
Stopped using a deprecated PhantomJS API. (No functionality change.)