Facebook - The technology behind preview photos

O idee tare interesantă de a îmbunătăți experiența utilizatorilor pe conexiuni lente: le servești o imagine foarte mică drept preview (aceleași proporții, de zece ori mai mică în px și de 350 ori mai mică în kb) și o afișezi pe aia până se încarcă imaginea mare.

So, we looked at JPEG image encoding, which is a very popular image codec. Especially since our image is going to be blurred heavily on the client, and thus band-limiting our image data, JPEG should compress this image quite efficiently for our purposes. Unfortunately, the standard JPEG header is hundreds of bytes in size. In fact, the JPEG header alone is several times bigger than our entire 200-byte budget. However, excluding the JPEG header, the encoded data payload itself was approaching our 200 bytes. We just needed to figure out what to do about that pesky header!

1 Like

Soundcloud au facut ceva similar acum mai bine de 1 an: https://developers.soundcloud.com/blog/smooth-image-loading-by-upscaling

4 Likes