4 ms·
Incredible work. My only comment is that the progressive loading example reveals that their algorithm seems to have desirable properties for lossy compression a
by sjwright 11y ago
Incredible work. My only comment is that the progressive loading example reveals that their algorithm seems to have desirable properties for lossy compression as well. Why not make FLIF support lossy and lossless? It's hard enough to get a new image format standardized as it is; offering a lossy mode would effectively give us a two-for-one deal.
If PNG had a lossy mode that was even slightly better than JPEG (or exactly as good but with full alpha channel support) it would have eventually supplanted JPEG just as it has now supplanted GIF.
- akavel 11y agoQuoting a fragment from the final section: "[...] any prefix (e.g. partial download) of a compressed file can be used as a reasonable lossy encoding of the entire image." though they also have it listed explicitly in the TODO section: "- Lossy compression"
- jaredcheeda 11y agoCurrent plan is to keep lossless and lossy versions of the format in the same bitstream for encoders/decoders and to differentiate the output files encoded to be lossy as ".flyf" (Free LossY image Format), and those that are encoded as lossless as ".flif" (Free Lossless Image Format). However renaming the files from flif to flyf or vice versa would have no effect, they would still be opened and decoded the same. It's merely meant to convey to humans the intention of the person who created the image. From my understanding, not much focus has been given to lossy endcoding as of yet.