Skip to content

Releases: domenic/svg2png

4.1.1

19 Dec 01:35
Compare
Choose a tag to compare

Removed extraneous dependencies by pulling in the fix sindresorhus/file-url#4.

4.1.0

06 Nov 02:49
Compare
Choose a tag to compare

Added support for non-ASCII characters in the source SVG (#67, @losnikitos).

4.0.0

13 Sep 14:07
Compare
Choose a tag to compare

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

11 Sep 14:51
Compare
Choose a tag to compare

Fixed a regression that broke passing no options in v3.1.0.

3.1.0

10 Sep 23:30
Compare
Choose a tag to compare

Added support for setting a url or filename option in order to allow relative URLs to resolve correctly.

3.0.1

05 Aug 14:57
Compare
Choose a tag to compare
  • 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

10 Jan 02:58
Compare
Choose a tag to compare
  • Requires Node.js 5.x.
  • Changed the API to use promises instead of callbacks.
  • Changed the API to accept and output Buffers, 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

09 Jan 14:19
Compare
Choose a tag to compare

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

12 Nov 06:07
Compare
Choose a tag to compare

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

06 Apr 03:32
Compare
Choose a tag to compare

Stopped using a deprecated PhantomJS API. (No functionality change.)