March 4, 201511 yr What techniques do you use to create responsive images, I'm in the process of it currently and so far it looks like I'll need the following widths; 320,480,700,800, what if I'm missing some widths, is there a sure fire method ?
March 4, 201511 yr Please tell me you are not planning on creating images for all those sizes. Plus 'widths' I assume you mean your media queries, in the which would be determined by your design, not devices.
March 4, 201511 yr Please tell me you are not planning on creating images for all those sizes. Plus 'widths' I assume you mean your media queries, in the which would be determined by your design, not devices. I think he means responsive images using the picture element. This is kind of the future although I think that many images is overkill. I tend to go with two or three. It's a sensible thing to do, why make somebody download a 2000px banner then their viewport is only 320px wide.. Page speed is king and images are often the biggest bottleneck in speed. Responsive images are a good thing. Don't need media querys, the picture element attributes allows the browser to decide which image is best to serve. There's some limited browser support but there are some polyfills around to get support down to IE9. By the way it would be insanity to be manually creating all these images. If you're using a CMS that could auto generate the smaller images, or you can use a build to plugin for Grunt or Gulp to automate this. Good screencast on the whole subject: https://css-tricks.com/video-screencasts/133-figuring-responsive-images/ Edited March 4, 201511 yr by rbrtsmith
March 4, 201511 yr How it is possible to make responsive images..? Either you have images that reduce in size when the window is resized, or you display a differently sized image based on the screen size of the user. http://adaptive-images.com/ is a ready made solution.
March 4, 201511 yr How it is possible to make responsive images..? ... Try watching the screencast in the link I posted.
March 4, 201511 yr Good screencast on the whole subject: https://css-tricks.com/video-screencasts/133-figuring-responsive-images/ Great screencast, nice explanation of srcset and responsive images.
March 4, 201511 yr Great screencast, nice explanation of srcset and responsive images. Chris Coyiers website is a goldmine of great information
Create an account or sign in to comment