Forum Moderators: not2easy

Message Too Old, No Replies

Responsive images for source file

         

toplisek

6:06 pm on Oct 20, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How to set optimum images source file for responsive design?

As responsive image expands/shrinks to device resolution/position, I like to know how to set optimum source file to work images on all possibilities.

CSS will define responsive as usually
display: block;
margin: 0 auto;
and center
display: block;
margin: 0 auto;

Image is source file like: 550x406px

Issue is how to know optimum source file as larger resolution demand larger source file or it will be added border / empty space.

Example: if you have just small thumbnails size it will not fit into larger resolutions.
Example: if you use large images it will be download issue like banner sizes

How to know optimum size for responsive websites?

not2easy

6:34 pm on Oct 20, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Google's advice is to optimize all images and depending on how you deal with various screen sizes, either deliver different images or serve the same image to be resized. I have not found much helpful information regarding responsive design and hi-res images delivery other than the resources they suggest here: [developers.google.com...]

I did find a php script there in their resources files that can be used to switch between alternate image sources based on screen size, but I still have not tried it out and can't say if it will help. There are several html5 galleries available for offering visitors a choice of image sets for photography sites.