News for hackers. Stuff that matters.
Re:Free Lossless Image Format by colanderman on Friday October 02, 2015 @10:24AM (#10318724)
Progressive JPEG has supported this for decades. Anyone over 25 should remember them from dial-up years.
Re:Free Lossless Image Format by hansjorg on Friday October 02, 2015 @10:58AM (#10318948)
I 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).

Re:Free Lossless Image Format by guelo on Friday October 02, 2015 @01:28PM (#10319933)
It'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?
Re:Free Lossless Image Format by iopq on Friday October 02, 2015 @02:30PM (#10320358)
The 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.

Re:Free Lossless Image Format by guelo on Friday October 02, 2015 @02:49PM (#10320461)
Where 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.
Re:Free Lossless Image Format by iopq on Friday October 02, 2015 @04:03PM (#10320941)
Maybe 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.
Re:Free Lossless Image Format by hansjorg on Friday October 02, 2015 @02:39PM (#10320412)
You'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.

Re:Free Lossless Image Format by magicalist on Friday October 02, 2015 @03:56PM (#10320896)
This 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.
Re:Free Lossless Image Format by radarsat1 on Friday October 02, 2015 @03:27PM (#10320687)
But how is that different from progressive JPEG?
Re:Free Lossless Image Format by kevin_thibedeau on Friday October 02, 2015 @07:06PM (#10321858)
And then there was magic of watching interlaced GIFs download before the era of JREG.
Re:Free Lossless Image Format by jessaustin on Friday October 02, 2015 @11:47AM (#10319265)
However jpeg is lossy.
Re:Free Lossless Image Format by colanderman on Friday October 02, 2015 @12:03PM (#10319368)
So is a FLIF that you only download half of.
Re:Free Lossless Image Format by mthoms on Friday October 02, 2015 @12:14PM (#10319423)
If 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).

Re:Free Lossless Image Format by colanderman on Friday October 02, 2015 @12:34PM (#10319552)
A 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).

Re:Free Lossless Image Format by jonsneyers on Friday October 02, 2015 @06:07PM (#10321640)
I 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.
Re:Free Lossless Image Format by mthoms on Friday October 02, 2015 @02:19PM (#10320271)
It's lossless (in theory) when compared to a 1/64th scaled version of the original image (which is what was clearly meant).