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) {