blueimp/JavaScript-Load-Image

Canvas area exceeds the maximum limit (width * height > 16777216).

eliakocher opened this issue · 1 comments

When dealing with large images (such as a panorama image shoot with an iPhone, resolution: 11118 × 3820) the loadImage() function with canvas=true will produce a warning:
Canvas area exceeds the maximum limit (width * height > 16777216).

the canvas will then be empty, for example canvas.toDataURL() or canvas.toBlob() will return an empty object.

Thanks for the report, this is a known issue and related to #110.
Not sure if there's a better way to handle this, as we cannot really test for a known size (it varies per browser and is not officially defined as far as I know).