FLIF icon indicating copy to clipboard operation
FLIF copied to clipboard

Default effort level might be better at a lower value

Open kliberty opened this issue 6 years ago • 7 comments

The program help says effort of -E 60 is the default, but some cursory tests I believe 10 - 14 may be a better default.

I attached the image I used, as well as a plot showing the size-png_size ratio and time-max_time ratio vs. the effort value. I tried a couple other images with similar results, though, I did not attempt to cover types of image data.

I don't mind running it for other images, our you can use the scripts I used.

flifratios ash_tree_-geograph org uk-_590710

kliberty avatar Jun 02 '18 04:06 kliberty

I'd like to see this kind of statistic run on a bunch of different kinds of images: raster, vector, etc.

In my mind, I view FLIF as a sort of PNG with better compression, which means I only use it on images with lots of solid colors. Photographs aren't quite what I'd expect to be encoded with FLIF, so showing statistics for only photographs isn't enough.

lehitoskin avatar Jun 02 '18 19:06 lehitoskin

I can do that. Would you consider the images in the benchmark repo to be representative? I might have to resize some of the smaller images to make the timing more accurate, though.

kliberty avatar Jun 02 '18 20:06 kliberty

Oops, I accidentally hit "Close and comment" instead of "Comment"

kliberty avatar Jun 02 '18 20:06 kliberty

Yeah, that might be fine. The more data that is available, the better, IMHO.

lehitoskin avatar Jun 02 '18 20:06 lehitoskin

I think -E30 is probably a better default.

jonsneyers avatar Jun 26 '18 07:06 jonsneyers

Why 30? I'm running all the images in flif-benchmarks/test_images right, but I can only let it run while I'm sleeping and since I tweaked it for better timing statistics it is taking longer than I expected..

So far I've completed :

  • debian
  • icip-corel
  • Lukas-2D-8bit
  • openstreetmap
  • png-gallery
  • pngimg.com-car-logos
  • pngimg.com-hammers

kliberty avatar Jun 26 '18 21:06 kliberty

A website seemed like the best way to display the results. They're posted at https://kliberty.bitbucket.io/flif-bench/.

I few images a missing because of some unrelated computer issues...but there are still more than 900 tests available.

kliberty avatar Jul 22 '18 03:07 kliberty