4 ms·
JPEG/GIF/PNG all have interlaces, why not download the first scan for smaller image, and full scan for original images?
by est 14y ago
JPEG/GIF/PNG all have interlaces, why not download the first scan for smaller image, and full scan for original images?
- dclowd9901 14y agoWow, this is a pretty novel approach; is this something that's been talked about or are you just one of those really clever people I keep hearing about?
- est 14y agoI just learned it from my other question on Stackoverflow not long ago http://stackoverflow.com/questions/15674880/ http://stackoverflow.com/questions/15674880/ It's a cool hack which you can serve low-res, monochrome jpeg in the first scan, and gradually to full-res, full-color jpeg.
- WiseWeasel 14y agoHalf an interlaced image is still twice as big as an image at half resolution.
- qu4z-2 14y agoInterlacing usually happens in two-dimensions in image formats, if I understand it correctly (ie it first sends one pixel out of each 2x2 block). The only thing is I think that is one of the actual pixels, rather than an average. In an ideal world you could send the average color of each 2x2 block, then send the 2nd, 3rd, and 4th pixels and use that data to reconstruct the 1st pixel. Or is that how it works already?