Feature request: potrace color option -C #rrggbb, --color #rrggbb
leandro2222 opened this issue · 1 comments
leandro2222 commented
leandro2222 commented
Workaround that I'm currently using to let the alpha white (don't work in Firefox and MS Edge when the image comes from the clipboard because their clipboard dont support alpha):
function loadCanvas() {
imgCanvas.width = imgElement.width;
imgCanvas.height = imgElement.height;
var ctx = imgCanvas.getContext('2d');
ctx.beginPath();
ctx.rect(0, 0, imgElement.width, imgElement.height);
ctx.fillStyle = "white";
ctx.fill();
ctx.drawImage(imgElement, 0, 0);
}