Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eliakocher opened this issue Mar 31, 2021 · 1 comment
Open

Comments

@eliakocher
Copy link

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.

@blueimp
Copy link
Owner

blueimp commented Sep 25, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants