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.
413 stars 51 forks source link

Add support for Picture element #202

Closed stavros-k closed 2 months ago

stavros-k commented 5 months ago

Use case:

I'd like to display a completely different image on some screen widths. (eg different orientation etc)

Thanks!!

Niels-IO commented 5 months ago

Hi @stavros-k,

I would argue that this is best left to each individual use and it could be done with a JavaScript conditional in your code.