Whenever I set the canvas size such that the width * height > 2048 * 2048 (such as 1985 * 2113 which equals 2048 * 2048 + 1) the await canvas.toDataURL('image/png'); returns "data:," (i.e. no data). When it's 2048 * 2048, I get all the data back. Could you help me understand where this limit is coming from and/or provide a work around? I've dug through the code and it's dependencies, but can't seem to find where this 4mb limit originates. Thanks!
Whenever I set the canvas size such that the
width * height > 2048 * 2048
(such as1985 * 2113
which equals2048 * 2048 + 1
) theawait canvas.toDataURL('image/png');
returns"data:,"
(i.e. no data). When it's2048 * 2048
, I get all the data back. Could you help me understand where this limit is coming from and/or provide a work around? I've dug through the code and it's dependencies, but can't seem to find where this 4mb limit originates. Thanks!