javascriptcanvasiframetodataurl

How can i change default max canvas size?


I saw on the Internet the different max size and area of a canvas. I would like to change them for my project because i create canvas of 5000px / 2600px. I test to put a smaller canvas (300px / 300px) and it works i've no error (NS_ERROR_FAILURE)

Thank's all


Solution

  • Canvas size is device dependent. Have a look at Maximum size of a <canvas> element, this may help you to resolve the issue.