nigeltao / qoi2-bikeshed

"Quite OK Image" version 2 discussions
33 stars 0 forks source link

More benchmark suite image variety (esp. re alpha) #17

Open nigeltao opened 2 years ago

nigeltao commented 2 years ago

Per #14

The test images are linked to from https://phoboslab.org/files/qoibench/ (with misc/lenna.png removed).

and

x kodak misc screenshots textures wallpaper total average QOI_COLOR (40) 0.000% 9.986% 0.000% 0.000% 0.000% 1.997%

It's not surprising in retrospect that, other than misc, nothing uses 5-byte QOI_COLOR codes, as the source pixels are fully opaque: they're photographs and screenshots.

Should we source some more PNG-images-with-alpha for our test suite? Perhaps some logos or SVG-to-PNG conversions??

Similar but not exactly the same: https://github.com/phoboslab/qoi/issues/20

ghost commented 2 years ago

I think a good set of test images with natural alpha channel data is the 213 icons in The Tango base icon library which is "released to the Public Domain", rendered at 512x512 (scripts in the package uses librsvg)

P.S. Please excuse that I'm a stranger with a new account.

nigeltao commented 2 years ago

Great suggestion. I have created https://github.com/nigeltao/tango-icon-library-pngs to hold the 512x512 PNGs.

No excuse necessary. Strangers welcome!

p0nce commented 2 years ago

image

Note sure where to post this. This 11kb PNG image encodes to a 256kb QOI. I feel like this is a worst-case scenario for that codec. I didn't generate that image for that purpose, I was just testing PNG vs QOI. So far, pretty underwhelmed with QOI compression size.

nigeltao commented 2 years ago
dumblob commented 2 years ago

Some more good images to test against: https://github.com/jhcloos/test_images

p0nce commented 2 years ago

@nigeltao it's nice that qoi-lz4 does better, but better entropy-coding doesn't really fix the lack of vertical intra prediction.

dumblob commented 2 years ago

And some more images: https://www-abclinuxu-cz.translate.goog/blog/programy/2022/5/jxl-from-tree?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=cs&_x_tr_pto=wapp .