gliffy / canvas2svg

Translates HTML5 Canvas draw commands to SVG
MIT License
691 stars 157 forks source link

image opacity + fix #63

Open murkle opened 6 years ago

murkle commented 6 years ago

Image opacity can be easily supported by adding the last line here:

       } else if (image.nodeName === "CANVAS" || image.nodeName === "IMG") {
            //canvas or image
            svgImage = this.__createElement("image");
            svgImage.setAttribute("opacity", this.globalAlpha || 1);