diff --git a/src/node.js b/src/node.js index 9b94e0fd..0cfaa7c9 100644 --- a/src/node.js +++ b/src/node.js @@ -121,6 +121,10 @@ return this.nodeCanvas.createPNGStream(); }; + fabric.StaticCanvas.prototype.createJPEGStream = function(opts) { + return this.nodeCanvas.createJPEGStream(opts); + }; + var origSetWidth = fabric.StaticCanvas.prototype.setWidth; fabric.StaticCanvas.prototype.setWidth = function(width) { origSetWidth.call(this); @@ -141,4 +145,4 @@ fabric.Canvas.prototype.setHeight = fabric.StaticCanvas.prototype.setHeight; } -})(); \ No newline at end of file +})();