Live data from Hacker News

Free Lossless Image Format

flif.info

301–310 of 374 posts

Re: Free Lossless Image Format

#301
BE SKEPTICAL!

Not a single mention of "signal to noise ratio" (SNR). If you are going to list compression rates you have to give the associated quality -- SNR is used in the literature.

I was suckered into "fractal image compression" by those selling the snake oil back in the 90's -- I am far more skeptical about these things now.

Re: Free Lossless Image Format

#302
post #78

Earlier quoted context omitted.

Very, very hard. I don't see why they didn't use LGPL, as GPL will greatly increase the barrier to adoption. You see how unsupported WebP is at the moment. Simply having a better compression ratio isn't gonna cut it.

The real barrier to adoption is, for the time being, older browsers, anyway. Want to lose 20% of your potential market via IE in favor of some improved image compression? =\

True enough... though there are a lot of other ways this can/could make it in the interim... much like webp through various optimizing/ha proxies. I to think GPLv3 will hinder peopler even trying to look at or support the format though. There are some legal minefields that many won't cross when it comes to copyleft... even if they wanted to many are in jobs that wouldn't allow it.

Re: Free Lossless Image Format

#303
post #244

They claim this is good for responsive images: The download or file read operations can be stopped as soon as sufficient detail is available, and if needed, it can be resumed when for whatever reason more detail is needed. -- http://flif.info/responsive.php Unfortunately that's not how HTTP works. Your browser opens several connections to a website, and makes requests for resources. Each connection is in use until th…

HTTP supports range headers to get a portion of a file...

Re: Free Lossless Image Format

#304

Why all the hate for GPLv3?

Sharing code is no longer cool if people have to share back. Or at least so it seems. The GPL-hate in here really is quite immense, even though time and time again, RMS has been shown to be right about his stance on freedom. Should we attribute it to people's desire for a quick ("free") fix over long term considerations? It's hard to tell, but I suspect the silicon valley influence here doesn't help. There everyone w…

Because GPLv3 code will never be adopted in IE, Safari, Chrome and likely Firefox... that's why. A reference implementation for an unencumbered format that doesn't also have a permissive license is unlikely to see wide adoption and support.

I'm fine with GPL for a LOT of things... For others I feel that MIT/BSD/ISC/Apache2, etc are better choices.

A software application that's GPL3, great... A library you want to see make it into diverse, embedded platforms, not so much.

Re: Free Lossless Image Format

#306

This is an exciting development. I think the concerns about the licensing are a bit premature - honestly, this is currently a research project, not a practical replacement for existing image formats. The licensing is only one of several impediments to adoption. - The format has no spec - The format may change, rendering all previous images unreadable - The format has no javascript implementation, and no way of runnin…

> - No peer-reviewed paper published yet? While there's no paper there's a full Github repo which I'd actually say is quite impressive.

As someone who regularly has to read supposedly landmark papers - with no source code provided - this is far preferable in my opinion. Computer vision is terrible for this!

Re: Free Lossless Image Format

#307

BE SKEPTICAL! Not a single mention of "signal to noise ratio" (SNR). If you are going to list compression rates you have to give the associated quality -- SNR is used in the literature. I was suckered into "fractal image compression" by those selling the snake oil back in the 90's -- I am far more skeptical about these things now.

could you go into detail about what you mean with "associated quality"?

These are lossless compression algorithms that are being compared here. The only other pertinent details regarding a lossless compression algorithm are the Compression Ratio, CPU usage, and Memory usage.

Re: Free Lossless Image Format

#308
post #75

This is really interesting. One of the most interesting parts is the progressive decoding/responsive images. http://flif.info/example.php (go to the bottom of the page). Basically, the last example shows that, if you want a scaled version of the image, you can simply stop decompressing. No need for multiple image files. Just create one with very high quality and decompress until you get the quality you want and scale…

This would be great. A lot of "responsive" sites nowadays use only one image as well, the highest resolution available. So you are downloading that 4K jpeg whether you are on mobile or on a desktop.

Snall screens dont always have small resolutions. There are more pixels on an iphone than my laptop!

Re: Free Lossless Image Format

#309
post #245

To clarify: at the moment FLIF is licensed under the GPL v3+. Once the format is finalized, the next logical step would be to make a library version of it, which will be most probably get licensed under the LGPL v3+, or maybe something even more permissive. There is not much point in doing that when the format is not yet stable. It's not because FLIF is GPL v3+ now, that we can't add more permissive licenses later. A…

BSD/MIT, or ASL2 are pretty much the standard if you want to see something as widely used as possible, which this sounds like might be the case. Cool work in any case! One thing the page could use is "how much processing power does this use, compared to other things?"

I use MIT because I want the license never to be an issue to somebody taking it an using it for their own needs. Do you know of any reason why people would object to MIT, or is that the best one for a plugin/library?

Re: Free Lossless Image Format

#310
post #286

Earlier quoted context omitted.

Brotli is excellent at text and does a great job at compressing overall, but FLIF is written directly to excel at lossless image compression, hence FLIF will be much better unless it's a really poor solution (which results show it's certainly not). Likewise Brotli will not beat FLAC at compressing audio, since FLAC is specifically written to do that.

Actually, FLAC doesn't have a very good compression ratio (e.g. see [1]). It does have features that are very important for audio streams: it can be quickly resynced and AFAIK decompression proceeds at nearly-constant speed. [1] https://news.ycombinator.com/item?id=7893171

Even so, I would be very surprised if FLAC did not outperform general purpose compressors if the test is done on a wider range of music than a single piano piece (which should be very compressable overall as audio goes).

edit: went and did a test on a couple of tracks, using brotli: bro --quality 11 --window 24 against flac -8 (best settings in both cases)

  satie - gymnopedie no 1:
  wav: 41.6mb
  brotli: 28.1mb
  flac: 14.7mb

  ram jam - black betty:
  wav: 41.8
  brotli: 35.8
  flac: 26.5

  vangelis - tao of love:
  wav: 29.4
  brotli: 23.0
  flac: 13.4

  meat load - paradise by the dashboard light:
  wav: 89.3
  brotli: 78.3
  flac: 58.5
certainly not a massive test, and there are likely general purpose compressors which does a better job than brotli, still I feel rather convinced that they will not do better than FLAC other than in extreme cases such as the piano piece you linked to.
Post reply on HN