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

Very Large PNG image fails with Error: Input image exceeds pixel limit #465

Open
6 tasks done
madhubalaji opened this issue Apr 15, 2023 · 2 comments
Open
6 tasks done

Comments

@madhubalaji
Copy link

madhubalaji commented Apr 15, 2023

Describe the bug

Unable to process a large PNG image. Lambda error - Error: Input image exceeds pixel limit
To Reproduce

Try to process a very large image up to 1-2 GB size.

Expected behavior

Process the image to a smaller size - 30000 X 30000 to 2048x2046

Please complete the following information about the solution:

  • Version: v6.1.1
  • Region: us-east-1
  • Was the solution modified from the version published on this repository? No
  • If the answer to the previous question was yes, are the changes available on GitHub?
  • Have you checked your service quotas for the sevices this solution uses? Yes
  • Were there any errors in the CloudWatch Logs? Yes
    [Error: Input image exceeds pixel limit]
    Screenshots

Additional context

@dougtoppin
Copy link
Contributor

tks for your report, we have added it to our backlog and will get back to you

@simonkrol
Copy link
Member

simonkrol commented Jul 16, 2024

Hi @madhubalaji, as an update, after the next major release, you'll be able to specify the maximum image size that sharp will accept on an environment variable attached to the Backend Lambda (0 for infinite).

Thanks for your feedback on SIH,
Simon

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

No branches or pull requests

3 participants