JavaScript-Load-Image icon indicating copy to clipboard operation
JavaScript-Load-Image copied to clipboard

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

Open eliakocher opened this issue 4 years ago • 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.

eliakocher avatar Mar 31 '21 13:03 eliakocher

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).

blueimp avatar Sep 25 '21 03:09 blueimp