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

Error: Input image exceeds pixel limit #2

Open
Arcanorum opened this issue May 3, 2021 · 0 comments
Open

Error: Input image exceeds pixel limit #2

Arcanorum opened this issue May 3, 2021 · 0 comments

Comments

@Arcanorum
Copy link

For particularly large source images, Sharp throws an error.
Can be fixed by passing along an options object with options.limitInputPixels = false

From https://sharp.pixelplumbing.com/api-constructor

options.limitInputPixels (number | boolean ) Do not process input images where the number of pixels (width x height) exceeds this limit. Assumes image dimensions contained in the input metadata can be trusted. An integral Number of pixels, zero or false to remove limit, true to use default limit of 268402689 (0x3FFF x 0x3FFF). (optional, default 268402689)

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

1 participant