View Single Post
  #12  
Old 25-11-2021, 08:24
kj911 kj911 is offline
Registered User
 
Join Date: Apr 2010
Location: world
Posts: 231
Thanks: 158
Thanked 88 Times in 62 Posts
kj911 is on a distinguished road
QOI Lossless Image Format

Introducing QOI — the Quite OK Image format. It losslessly compresses RGB and RGBA images to a similar size of PNG, while offering a 20x-50x speedup in compression and 3x-4x speedup in decompression. All single-threaded, no SIMD. It's also stupidly simple.

https://phoboslab.org/log/2021/11/qo...ge-compression

Nice preprocessors from visually losslessly recompress PNG files smaller than ~30 to 50% percentage to original ones. (Hint: compress encoded QOI files use CM/LZ* or any algo.)

Compressed PNG files to QOI format, its bigger or smaller than original PNG file and fairly compressibble than orig. PNG files. Decoded PNG files its smaller/bigger than original PNG files. Not bitperfect lossless compression. Visually lossless only.

Example:

Original test.png file: 213 745 bytes
QOI file: 398 930 byte
Decompressed PNG file to QOI file: 336 428 byte
Compressed QOI file with RAR: 96 430 byte (internal size in archive)

Example2:

pg-coral.png 265K
pg-coral.png.balz 266K // balz cannot improve png!
pg-coral.qoi 371K // seems bad? but not if further compressed
pg-coral.qoi.zip 250K // better than PNG!
pg-coral.qoi.balz 222KB // even better! total-code size (Balz + qoi + strip comments&headers) is maybe 500 lines of code.

I think if qoi used my suggestions (tiling+delta), we can get the file much smaller, maybe 200K.

Further tests with XZ:

pg-coral.qoi.xz 182KB

Again, if qoi used tile+delta, maybe we can get the file down to 150KB? (using xz)

Compiled Win XP x86 compatible EXE attached.
Attached Files
File Type: rar qoiconv_x86_winxp_20211125.rar (40.5 KB, 11 views)
Reply With Quote
The Following User Says Thank You to kj911 For This Useful Post:
Gehrman (07-03-2022)