Image: A thumbnail view
Saturday, 18. July 2009, 20:42:54
Modern image formats are designed for lower bandwidth, with interlaced and progressive functionality, showing the image in progressively improving resolution as the bits arrive, but there is no functionality to say that enough bits have been transferred already and that any further bits won't add to the quality of the image.
The usual approach is to generate thumbnails based on the full-size images, and let the thumbnails function as links to the full-size image. The problem with this approach is that the image and the thumbnail are unconnected. Given the image address you can't use the thumbnail to quickly display a rough outline of the image until it is downloaded, given the thumbnail you can't download the image if the resolution is insufficient, and there is no way to cache an image's thumbnail.
Given the multimegapixel image sources there will be at least three levels of raster images, the original which tend to be too large for any useful purpose, the edited/enhanced Web image, and the scaled down and often cropped thumbnail. The same applies to the audio and video media types as well, only here the downsampled files can be even more dramatically smaller than the raw source files.
A thumbnail should link to the image it is derived from and describe the list of operations done to generate the thumbnail. In formats that supports it like PNG this could be stored in a chunk, but markup is a more generalised solution.
















dantesoft # 19. July 2009, 08:30
The file format could of course change. PNG for small resolution would be preferable to JPEG, for a certain file size.
There could be mirrors for the same image in different locations, if the user doesn't care about file size and resolution as much as download speed.
How I see it working is this. The webmaster would markup the available images (XLink could be used, I think), with CSS or another mechanism declaring the preferred image display size.
A la Turbo, the user could set his preference for Quality or Speed, and the browser would load the best matched image from the closest location available.
The user would then have the option to reload the image at the desired size and resolution.
jax # 19. July 2009, 19:58
This isn't sufficient for a seamless thumbnail handling, but it is enough to associate thumbnails with their source images, or the images with their sources (or for that matter non-images with their source resources).
Modern image formats have metadata chunks, but when referring to other resources (in this case source) they are exposed to link rot as the linked resource may have moved after the derivated image was generated.
For fully describing the relationship between the resources some form of markup external to the images would be desirable. Ideally this would enable all the related image resources to be accessed from the same URL.