Native Responsive Images
dev.opera.com
Native Responsive Images
1–10 of 27 posts
Re: Native Responsive Images
#2Re: Native Responsive Images
#3Honestly, I need to support retina screens for mobile and desktop. For non-retina screens getting a larger image doesn't really matter. Non retina mobile devices are rapidly disappearing. So therefore I'm comfortable delivering higher resolution images to all devices.
I optimize our images by making them as small as possible and using lazy loading. These two techniques are more than adequate to suit out needs right now.
I am (loosely) of the opinion right now that this is an answer in search of a problem.
Re: Native Responsive Images
#4 src="cat_500px.jpg" srcset="cat_750px.jpg 1.5x, cat_1000px.jpg 2x"
Does anyone know if the browser will download a higher-res image once the user zooms in? E.g., in Chrome on OSX, if I zoom from 100% to 130% on a non-Retina display, will it download the 1.5x version and downsample it? Likewise, in iOS, if the initial zoom setting is "zoomed out", and "retina" is almost meaningless from a web perspective because people are zooming in and out all the time, what will be downloaded?I've never really understood the attention paid to exact pixel alignment, and retina versions of images, when zoom levels are all over the place these days on all sorts of devices.
Re: Native Responsive Images
#5Honestly, we're (collectively) never going to adopt this on a large scale. Everything I read in this article is just horribly complicated. I don't have a solution, but none of these are the right one. There's so much complexity going on that no developer will get it right without devoting a massive amount of time and effort just to load the "right" image at the "right" time. Honestly, I need to support retina screens…
Re: Native Responsive Images
#6Honestly, we're (collectively) never going to adopt this on a large scale. Everything I read in this article is just horribly complicated. I don't have a solution, but none of these are the right one. There's so much complexity going on that no developer will get it right without devoting a massive amount of time and effort just to load the "right" image at the "right" time. Honestly, I need to support retina screens…
Yeah...we thought of that too: https://github.com/pixtulate/pixtulate.js
Re: Native Responsive Images
#7...and if you don't want to pre-scale/crop all those different image sizes, you can have Pixtulate ( http://www.pixtulate.com ) generate them on the fly from one high resolution image.
Re: Native Responsive Images
#8Re: Native Responsive Images
#9Honestly, we're (collectively) never going to adopt this on a large scale. Everything I read in this article is just horribly complicated. I don't have a solution, but none of these are the right one. There's so much complexity going on that no developer will get it right without devoting a massive amount of time and effort just to load the "right" image at the "right" time. Honestly, I need to support retina screens…
An example I just tried was 38kb at 1x and 105kb at 2x
Re: Native Responsive Images
#10Earlier quoted context omitted.
Yeah...we thought of that too: https://github.com/pixtulate/pixtulate.js
I don't think this is a solution either. In most cases we don't need multiple images of vastly different sizes. Sizing images can be handled entirely through media queries. We aren't using multiple versions of each image, so there's no need for a js shim.
Unless something's changed since the last time I looked, media queries are only screenwise so they don't gracefully handle having a block in a small sidebar versus a "central" content section. The sidebar images could actually grow from a big to a small screen (because content is linearised and the "sidebar image" now takes the whole width of a small display, rather than a small part of a big display)