4 ms·
Progressive JPEG has supported this for decades. Anyone over 25 should remember them from dial-up years.
by colanderman 11y ago
Progressive JPEG has supported this for decades. Anyone over 25 should remember them from dial-up years.
- hansjorg 11y agoI think the suggestion is that the client could just stop downloading at a set threshold, maybe taking current bandwidth, cost, etc. into consideration. Judging from the video, something like that could work very well (and much better than with progressive jpegs).
- radarsat1 11y agoBut how is that different from progressive JPEG?
- guelo 11y agoIt's an interesting concept. But I'm not sure how it could work. Resizing introduces artifacts so best quality is always going to be achieved by reencoding for different resolutions. Also, how would the client know when to stop downloading?
- iopq 11y agoThe client would download the first 1KB for an icon, 4K for a thumbnail and the whole image for the full size. The best part is that all of those are actually the same file, not separate embedded thumbnails inside the file. The client could decide BY ITSELF to download only 2K for a thumbnail because it's currently on 3g.
- guelo 11y agoWhere are you getting 1KB and 4KB from? The compression is highly dependent on the image so there's no way to know the quality of the thumbnail image.
- iopq 11y agoMaybe a future version of the format would specify useful cut-off points for browsers to make the decision inside the header. Then the browser can decide to download 4K version on wifi and 1K version on 3g.
- hansjorg 11y agoYou'd need to set the thresholds in the file manually, based on the artists judgement of quality. It would take a few extra seconds when creating it, but could save both bandwidth and create a better user experience on mobile.
- magicalist 11y agoThis will have to be automated or it's going to be really annoying for development. To eliminate that, maybe the file format could incorporate some internal tags for good size thresholds, or even just a handful of coefficients at the beginning for a simple curve approximating the byte-to-resolution mapping.
- jessaustin 11y agoHowever jpeg is lossy.
- colanderman 11y agoSo is a FLIF that you only download half of.
- mthoms 11y agoIf compared to the original yes, but that's apples to oranges. They are different resolutions. It'd be more accurate to compare it to a pre-generated resizing of the original image (at the same effective resolution as the "half downloaded" FLIF).
- colanderman 11y agoA compressed image which does not reconstitute to the original image is by definition lossy. You can't scale a PNG down by 25% and call that "lossless compression". Though I'll gladly take your logic and call the first 1/64th of a progressive JPEG lossess (which it is, since at that point you only have the DC offsets of basic blocks, which undergo no lossy compression).
- mthoms 11y agoIt's lossless (in theory) when compared to a 1/64th scaled version of the original image (which is what was clearly meant).
- jonsneyers 11y agoI think JPEG's color transform is lossy, so even those basic blocks are somewhat lossy. A better approximation of the entire 8x8 block than the exact pixel at the top-left position of the block, which is what FLIF and PNG with Adam7 interlacing do, but still lossy. If you would take an image, magnify it by a factor of 8 in both directions so each pixel gets blown up to an 8x8 block, then convert it to JPEG, there is still some information lost.
- kevin_thibedeau 11y agoAnd then there was magic of watching interlaced GIFs download before the era of JREG.