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

Input image exceeds pixel limit #2373

Closed
mvn-luanvu-hn opened this issue Sep 17, 2020 · 2 comments
Closed

Input image exceeds pixel limit #2373

mvn-luanvu-hn opened this issue Sep 17, 2020 · 2 comments
Labels

Comments

@mvn-luanvu-hn
Copy link

Are you using the latest version? Is the version currently in use as reported by npm ls sharp the same as the latest version as reported by npm view sharp dist-tags.latest?

=> I'm using [email protected]. It's the latest version.

What are the steps to reproduce?

=> When I passed buffer of image (18MB - 30000 × 19043 pixels), I encountered the following problem.

[Error: Input image exceeds pixel limit]

What is the expected behaviour?
=> No error
I found this issue #1381. But I could not find any option like limitInputPixels.

What is the output of running npx envinfo --binaries --system?
=> I'm running on Lambda with memory 2048 MB

@lovell
Copy link
Owner

lovell commented Sep 17, 2020

Hi, did you see the limitInputPixels property of the constructor?

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

sharp(input, { limitInputPixels: ... })...

@lovell lovell added question and removed triage labels Sep 17, 2020
@mvn-luanvu-hn
Copy link
Author

@lovell
Thank you very much!
I tried that option. It worked perfectly.

delano added a commit to onetimesecret/docs.onetimesecret.com that referenced this issue Sep 5, 2024
One of the images for the Sept UUX/UI blog post (the feedback gif) would not load. Turns out there an error: `[IPX_ERROR] Input image exceeds pixel limit`

which lead to: lovell/sharp#2373
which mentioned:

> Hi, did you see the `limitInputPixels` property of the constructor?
>
> https://sharp.pixelplumbing.com/api-constructor
>
> ```js
> sharp(input, { limitInputPixels: ... })...
> ```

Although I ended up just recreating the gif smaller.

Signed-off-by: delano <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants