next-image-export-optimizer icon indicating copy to clipboard operation
next-image-export-optimizer copied to clipboard

More error tolerant attempt to save /fetch remote image

Open PhilGale92 opened this issue 6 months ago • 0 comments

Heya! one more quick potential change from me to gather thoughts.

Im using this tool to use SSG by conecting to contentful and downloading all the remote images. Now sometimes contentful fails to provide the image. Would it be possible to add a mode to downloadImagesInBatches in which the Unable to save ${formattedFilename} (empty file). error (and maybe other errors). Resolve() out rather than rejection.

Just as otherwise i'd have to query every image first / it seems a shame for the whole process to die out because of one image-download failure.

Hope the above makes sense, again if you okay it im happy to give it a go to make the change. Thanks,

PhilGale92 avatar Aug 19 '24 11:08 PhilGale92