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

images.config.js default doesn't add native props #250

Open WillSquire opened 3 years ago

WillSquire commented 3 years ago

Expected the following config would result in decoding="async" being added to all images:

default: {
  decoding: "async",
  densities: [1,2,3],
  webp: true,
},

This didn't happen. Also densities didn't work (and is broken when it tries to work using it on the Img component - my retina screen loads the lowest resolution). Would be nice for loading: 'lazy' to work too.