Comments on: Responsive images – end of year report https://stevefaulkner.github.io/html5doctored/responsive-images-end-of-year-report/ helping you implement HTML5 today Wed, 04 May 2016 10:02:12 +0000 hourly 1 By: Mr. Raymond Kenneth Petry https://stevefaulkner.github.io/html5doctored/responsive-images-end-of-year-report/#comment-2061236 Thu, 26 Nov 2015 07:05:39 +0000 http://html5doctor.com/?p=5352#comment-2061236 Wouldn’t a more general purpose extension to .png, to include panorama zooming, be the better solution to image-resolution selection, (aside implementing something like rpi’s SPIHT)…?

]]>
By: Nono Junang https://stevefaulkner.github.io/html5doctored/responsive-images-end-of-year-report/#comment-2055350 Tue, 10 Nov 2015 22:24:42 +0000 http://html5doctor.com/?p=5352#comment-2055350 What about having the following solution:
– Introduce a new image mime-type for responsive images: image/rpng, image/rjpeg. The file extension remains .jpg, .png so that the server can fallback. That image format will deliver the content of the image in a progressive manner depending on the clients capabilities.
– The content of the image would be the highest quality available.
– Bring the HTTP Servers (Apache, IIS, etc…) to understand the new mime-type and deliver the image content depending on the clients capabilities
– The client can specify to the server in which quality he wants such images delivered (low, medium, high, full), may be using a new HTTP-HEADER. In case there is no server (local app), then the image is fully loaded
– The combination of the client capabilities will result in the following image qualities that can be requested from the server: low, medium, high, full. So it is up to the client to determine what quality of images he wants to request from the server.
When the client requests for:
– a low quality image then the server delivers a limited amount of data, lest say 30%
– a medium quality image then the server delivers 50% of data
– a high quality image then the server delivers 80% of data
– the full image then the server delivers 100% of data.

Lets say the client requested initially for a low quality image because it was on a 2g connection. Then 30% of the image data got delivered. Then the user switches to a 3g connection. Then the client can detect the change automatically and request for the high quality image providing the server with a hint telling that the low quality image has already been loaded and thus avoiding to load it again. Then another 50% of data is loaded (since the client already has 30% of the data in the cache, it only needs to load the 50% up to 80%)

Now when the user switches to a WiFi connection the full image is loaded. This time only the remaining 20% of data is loaded from the server through the same mechanism.

The could be an option in the client where the user could override that default behaviour and choose to always load the low, medium, high or full image.

So recap:
1- New responsive image mime-type
2- Server to understand new image mime-type. If not then it will fallback to delivering the full image
3- Client to specify what quality it wants (low, medium, high, full)
4- Server to read what quality the client wants and return the amount of data progressive
5- Server to return data diff based on a starting point, for example high image requested and starting point is low then return only high-low data.
6- Client to request more data when the user switches to better connection.
7- User can override in the client the quality of the images to be delivered

What do you think?

]]>
By: Matteo Conta https://stevefaulkner.github.io/html5doctored/responsive-images-end-of-year-report/#comment-172888 Wed, 30 Jul 2014 16:18:09 +0000 http://html5doctor.com/?p=5352#comment-172888 I reposted the example with the correct HTML.

I read part of the documentation at http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content.html#embedded-content and my first thought was that it seems too verbose.

Consider this example:

<img sizes=”100vw” srcset=”wolf-400.jpg 400w, wolf-800.jpg 800w, wolf-1600.jpg 1600w”
src=”wolf-400.jpg” alt=”The rad wolf”>

It adds a lot of additional code only for repeating the same concept:
the browser needs to pickup a different image if the viewport is different from the default.

Why don’t you add a tag “inside” the image name?

The browser will search on the server for the correct image :

<img sizes=”100vw” srcset=”wolf-[[vw]].jpg”
src=”wolf-100.jpg” alt=”The rad wolf” >

[[vw]] will be replaced by the browser.

This approach is also compatible with future improvements, if I serve the images using a service and I decide to offer images with a greater resolution, I don’t need to change all the tags in my code.

If you want to avoid 401 error for viewport not supported by the image we can add a <viewport> element with the supported viewports:

<viewport enabled=”400 800 1600 3200″ default=”100″/>

Am I simplifying too much this topic?

]]>
By: Mr. Raymond Kenneth Petry https://stevefaulkner.github.io/html5doctored/responsive-images-end-of-year-report/#comment-57729 Thu, 19 Jun 2014 02:59:12 +0000 http://html5doctor.com/?p=5352#comment-57729 Maybe you can get their attention: Extended purpose users need user-defined elements e.g. X0-X9,XA-XZ, with some predefined as parents-and-children would be a nice touch…

I currently have commandeered DL,DT, DD, but these no longer stack like they use-to till IE8, and never did in FF and Chrome…

Ray.

]]>
By: Mark https://stevefaulkner.github.io/html5doctored/responsive-images-end-of-year-report/#comment-49172 Sat, 26 Apr 2014 09:35:54 +0000 http://html5doctor.com/?p=5352#comment-49172 Just received this update from the filament group http://filamentgroup.com/lab/picturefill_2_a/?utm_source=Responsive+Design+Weekly&utm_campaign=ca05ff1258-Responsive_Design_Weekly_106&utm_medium=email&utm_term=0_df65b6d7c8-ca05ff1258-58981737

]]>
By: JANNiS https://stevefaulkner.github.io/html5doctored/responsive-images-end-of-year-report/#comment-48959 Thu, 10 Apr 2014 11:49:34 +0000 http://html5doctor.com/?p=5352#comment-48959 src-N is dead now. Long live srcset. Look forward to !

]]>
By: Moltar https://stevefaulkner.github.io/html5doctored/responsive-images-end-of-year-report/#comment-47971 Fri, 14 Feb 2014 21:55:58 +0000 http://html5doctor.com/?p=5352#comment-47971 Is there reason not to simply provide a src-N tag for any new ratio to be supported?

]]>
By: Phil https://stevefaulkner.github.io/html5doctored/responsive-images-end-of-year-report/#comment-47370 Sat, 08 Feb 2014 14:31:32 +0000 http://html5doctor.com/?p=5352#comment-47370 Looks like i’m a little late to the party! – just found out about the new W3C Resource Priorities draft for lazyload and postpone:
https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/ResourcePriorities/Overview.html
Looks like it could develop into something interesting.

]]>
By: Phil https://stevefaulkner.github.io/html5doctored/responsive-images-end-of-year-report/#comment-47364 Sat, 08 Feb 2014 14:02:40 +0000 http://html5doctor.com/?p=5352#comment-47364 I like what @Matt Kieran suggested.

I think the biggest problem for responsive images, or any asset linked in the mark-up, is our lack of control of when (or if) these assets are downloaded.

We should be able to inform browsers which assets should not be downloaded immediately (while still using the src attribute for our actual image).

We can then use JavaScript to make a decision on weather or not to use the default source, or make a logical decision to load the appropriate image based on our specified criteria (view-port, pixel density, etc).

A simple flag as an extra attribute for img would work really well, (or maybe even a new meta tag that can include this information globally, dunno if that would work..).

So for example: <img src=”potato.jpg” alt=”a potato” defer=”wait-for-js”>

or even just: <img src=”potato.jpg” alt=”a potato” defer>

Like this, we keep almost identical mark-up, with only a very concise flag that the browser understands.

I think this would degrade pretty gracefully too for older browsers that didn’t allow for deferring the download of assets.
They’d just get the default source, (downloading immediately of course).

Search engines would also be able to index these images, and the mark up is valid and simple.

I know mobify.js has a capturing api for this kind of thing, but I really think this should be simpler, and provided as a feature baked into the browser, and not dependant on large js libraries.

Server side solutions are OK – but not all encompassing, and will have differing dependencies for every server environment in use. Performance can also become an issue here too. It is difficult for a server to gain accurate insight into what browser you are using, viewpoint and pixel density.

This solution has got to be within the client scripting environment – It has all the resources to decide which assets are best for its particular environment, and can also be used to detect connection speed if needed.

]]>
By: Jakob E https://stevefaulkner.github.io/html5doctored/responsive-images-end-of-year-report/#comment-44608 Wed, 22 Jan 2014 01:10:20 +0000 http://html5doctor.com/?p=5352#comment-44608 OK – where did the edit comment button go? Sorry for the not intended PS. And for H5D not having a feature to let me fix it ;)

]]>