Why was it that, back in the early days of the WWW, some browsers would load a low-res image which would then become sharper, while others loaded the image bit-by-bit, top to bottom?

549 views

Why was it that, back in the early days of the WWW, some browsers would load a low-res image which would then become sharper, while others loaded the image bit-by-bit, top to bottom?

In: Technology

2 Answers

Anonymous 0 Comments

That’s a feature of jpeg. Somewhat simplified jpeg encodes images in blocks of 8×8 pixels. It computes a discrete cosine transform of those blocks and quantizes the resulting coefficients. An interesting side effect is that one of those transformed values happens to be the average value of the 8×8 block. So by putting all of those values at the front of the file you can get a low res approximation before having downloaded the entire file.

Anonymous 0 Comments

This is not depending on the browser, but the image. If it is stored as “progressive JPEG”, a lower resolution version can be shown first because the first bytes of the file contain a rough version which then gets more detailed when more data is available as download progresses.

With increased download speeds, progressive JPEG fell a little bit out of fashion because it was no longer necessary.