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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow setting sharp's limitInputPixels option

discordianfish opened this issue · comments

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.