Skip to content

Add canvas fillStyle to options #102

@florianhuber81

Description

@florianhuber81

Transparent backgrounds on png images are drawn on the canvas with a black background when img.toBlob() is set to image/jpeg.
My suggestion: Adding an option to set the fillStyle of the canvas. I tried hacking it in. Worked so far.

x.renderImageToCanvas=function(e, t, i, n, a, o, r, s, l, c, d) {
var u=e.getContext("2d");
u.fillStyle = '#FFFFFF';
u.fillRect(0,0,l,c);
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions