From ad783c21baedba15562358afcb21516c017e9789 Mon Sep 17 00:00:00 2001 From: Michael Deal Date: Wed, 8 Nov 2017 15:49:24 -0800 Subject: [PATCH] Merge in fix #53 via @kinimesi --- canvas2svg.js | 1 + 1 file changed, 1 insertion(+) diff --git a/canvas2svg.js b/canvas2svg.js index 7855e81..16028d2 100644 --- a/canvas2svg.js +++ b/canvas2svg.js @@ -1141,6 +1141,7 @@ svgImage = this.__createElement("image"); svgImage.setAttribute("width", dw); svgImage.setAttribute("height", dh); + svgImage.setAttribute("opacity", this.globalAlpha); svgImage.setAttribute("preserveAspectRatio", "none"); if (sx || sy || sw !== image.width || sh !== image.height) {