cyrilwanner / next-optimized-images

🌅 next-optimized-images automatically optimizes images used in next.js projects (jpeg, png, svg, webp and gif).
MIT License
2.21k stars 93 forks source link

WebP auto fallback #111

Open timothymiller opened 5 years ago

timothymiller commented 5 years ago

Feature Request

It would be awesome if this library could provide boilerplate code for falling back to JPEG/PNG file formats when WebP is not available, like in the example, but automatically for all images when withOptimizedImages is ran during the build process.

JannikZed commented 5 years ago

maybe in combination with the responsive-loader feature, that could generate a srcSet and a src automatically? I'm also having the question, if it's possible to use the webp feature and the responsive-loader in combination, so first create a webp image and afterwards a srcSet with different sizes and a fallback img automatically - that would be amazing!