When exporting image in various browsers, the result of exporting a JPEG should not depend on whatever the browser thought transparent might look like in a jpeg (which does not have transparency).
In particular, fill all of the canvas background with White (using e.g. fillRect()) instead of filling it with transparent (e.g. clearRect()).
When exporting image in various browsers, the result of exporting a JPEG should not depend on whatever the browser thought transparent might look like in a jpeg (which does not have transparency). In particular, fill all of the canvas background with White (using e.g.
fillRect()
) instead of filling it with transparent (e.g.clearRect()
).