Comparing farbfeld with png and jpeg (farbtest) - Unix Related Arts & Image Manipulation Software

Users browsing this thread: 2 Guest(s)
pranomostro
Long time nixers
This night I had the idea of comparing the new suckless image format farbfeld (http://tools.suckless.org/farbfeld)
with some standard image formats such as png and jpg.

So I conducted a little experiment by writing 2 little scripts and comparing
the compressed farbfeld versions of some images with the originals. The scripts
can be found at https://github.com/pranomostro/farbtest .

Here are the results of my experiment (shamelessly stolen from the README):

A random test with 554 images (467 jpg's, 87 png's) downloaded with 4img was conducted (the images not included because they are nsfw and too big for such a small project). The images were converted to farbfeld and compressed with bzip2 with star2ff.

The data (in case somebody wants it) is in the files png.data and jpg.data.

Only 30 of the farbfeld images derived from png's were bigger than the original file, the biggest ratio being 177%. The rest of the compressed farbfeld images (57) was smaller than the original, values ranging from only 28% of the original size to 99%. Especially very small files and files with a very low entropy were compressed better by farbfeld+bzip2 than by png.

jpg scored a lot worse. Only 1 of the compressed farbfeld's was smaller than it's jpg counterpart, with 99% of the original size. The ratios for the other 466 images were disappointing compared to png's results: 2 farbfeld images were nearly 20 times, most 5-8 times bigger than the original image. The ration increased with the entropy and the number of colors used in the image (mostly white images being comparatively small). This measure should be taken with a grain of salt, because comparing the lossy jpg to the lossless farbfeld could be a bit unfair.

I encourage everyone not to trust these measurements and to test the farbfeld format himself with these small tools and lots of different data sets.

So yeah, that's it.

Hope you enjoyed the information about farbfeld and are as excited as I am about this new lossless image format.


Messages In This Thread
Comparing farbfeld with png and jpeg (farbtest) - by pranomostro - 03-06-2016, 10:31 PM