1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Responsive Web Design - Images

Discussion in 'HTML & Website Design' started by neilem, Jan 3, 2017.

  1. #1
    Hello, I'm intending to create an image intensive website which will be responsive.

    The main issue I'm trying to figure out is around the images. Say for example I'm scrolling through a gallery of images, for each I wouldn't want to store one big hi-res image for it to be resized to a postage-stamped size thumbnail, while it still holds the same weight as the full image itself. For this problem, I assume a thumbnail image is created on each image upload?

    Also, I'd only want the full image to be shown if the user clicks on the image from the image gallery. The other problem is mobiles surely wouldn't need the same hi-res image a desktop would require. Is there any way around this, or is the only option to upload another version for the same image (which would make it thumbnail, mobile, and a desktop image)?

    The next problem is knowing how to select that "mobile" vs "desktop" image. Is it a case of using some sort of CSS to select that specific image depending on the browser width? I noticed adaptive-images.com caters for this use-case, but I'm not too familiar about this...

    Thanks for any advice!
     
    neilem, Jan 3, 2017 IP
  2. Frostnet

    Frostnet Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    Look into Lazyloaders: https://github.com/aFarkas/lazysizes (there could be a better one than this, it's just an example)

    You will definitely need to create different size thumbnails for your project. Resizing on load is going to be very slow. You can set different images to load for certain device screen width with the lazyloader and the images wont be loaded until needed.
     
    Frostnet, Jan 5, 2017 IP
  3. Amarkolom

    Amarkolom Active Member

    Messages:
    186
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #3
    You have to use lazy load plugin. You should get perfect one for your website. This decrease the image sample quality & display quick. When some interested on that image, this open in big size.
     
    Amarkolom, Jan 6, 2017 IP