what settings do I require if I want fetch small sized images if a user visits my website with a mobile device?

Posted 2 years ago by jamesjames

Hi everyone. My plan is to reduce bandwidth. What settings do I require if I want fetch small sized images if a user visits my website with a mobile device?

All images are saved Amazon S3 now.

Images are

1080px x 1080px and 200kb for desktop 500px x 500px and 100kb for mobile device.

In my head,

  1. require to detect mobile device.
  2. require to conditional code on controller
  3. require to conditional code on blade template
  4. require to make additional table or column for small size images

Any tutorial or advice please.

Please sign in or create an account to participate in this conversation.