Niels-IO / next-image-export-optimizer

Use Next.js advanced <Image/> component with the static export functionality. Optimizes all static images in an additional step after the Next.js static export.
MIT License
460 stars 56 forks source link

Allow setting sharp's limitInputPixels option #123

Closed discordianfish closed 1 year ago

discordianfish commented 1 year ago

I've got a give with 150 frames in 2560x1080 causing next-image-export-optimizer to fail:

#13 177.4       Error while optimizing image EnterArena.gif
#13 177.4       Error: Input image exceeds pixel limit
#13 177.4       
#13 177.4 node:internal/process/promises:279
#13 177.4             triggerUncaughtException(err, true /* fromPromise */);
#13 177.4             ^
#13 177.4 
#13 177.4 [Error: Input image exceeds pixel limit]

To fix that, the limitInputPixels sharp constructor option should be exposed.

discordianfish commented 1 year ago

(Sorry about the other issue, github just had an outage and apparently despite returning 500 actually submitted the issue)

Niels-IO commented 1 year ago

Closed by #133