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.