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 #107

Open
thecoffeebin opened this issue Dec 16, 2024 · 1 comment
Open

Input image exceeds pixel limit #107

thecoffeebin opened this issue Dec 16, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@thecoffeebin
Copy link

thecoffeebin commented Dec 16, 2024

When uploading a large GIF file (11Mb) the image preview is broken and I found the following error in the log:

picsur           | [Nest] 18  - 12/15/2024, 5:12:44 PM    WARN [SharpWrapper34400] Worker error: Error: Input image exceeds pixel limit
picsur           |     at Sharp.toBuffer (/picsur/node_modules/.pnpm/[email protected]/node_modules/sharp/lib/output.js:163:17)
picsur           |     at UniversalSharpOut (file:///picsur/backend/dist/workers/sharp/universal-sharp.js:69:40)
picsur           |     at SharpWorker.finish (file:///picsur/backend/dist/workers/sharp/sharp.worker.js:62:34)
picsur           |     at SharpWorker.messageHandler (file:///picsur/backend/dist/workers/sharp/sharp.worker.js:34:18)
picsur           |     at process.emit (node:events:519:28)
picsur           |     at emit (node:internal/child_process:951:14)
picsur           |     at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
picsur           |
picsur           | [Nest] 18  - 12/15/2024, 5:12:44 PM   ERROR [MainExceptionFilter] (162.158.192.152 -> GET /i/4e838aa1-fc6b-4853-bcd3-8593caf59e4e.gif?width=1920&shrinkonly=yes) InternalFailure: Worker closed

The GIF is attached below to help you reproduce this issue.

time-animated.zip

As a side note I've seen online solution to this i.e. adding “limitInputPixels: false" or "limitInputPixels: 0" to the sharpworker or something but I don't know how ;)

@CaramelFur
Copy link
Owner

Hmm, thanks for the issue, I'll look into it

@CaramelFur CaramelFur added bug Something isn't working good first issue Good for newcomers labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants