twopluszero / next-images

Import images in Next.js (supports jpg, jpeg, svg, png and gif images)
MIT License
948 stars 67 forks source link

creating multiple images with different sizes #6

Closed wenzf closed 6 years ago

wenzf commented 6 years ago

Is it possible to to set the webpack configurations so that multiple images with different sizes are created from one initial image. This would help to deliver the right sized image depending on screen sizes / resolutions. If it's possible to do this within next-images, I would be happy if you could give me some hints how to implement this. Thanks a lot!

arefaslani commented 6 years ago

This could be done with something like responsive-loader. But maybe working with remote images become a problem. For now, you can use this loader to do what you want. I will check how to do that when I have more time.

arefaslani commented 6 years ago

I will close this issue. But you can reopen it if you think it should not be closed.