3 ms·
now do it in QOI :) https://phoboslab.org/log/2021/11/qoi-fast-lossless-image-compression https://phoboslab.org/log/2021/11/qoi-fast-lossless-image-co... http
by leeoniya 3y ago
now do it in QOI :)
https://phoboslab.org/log/2021/11/qoi-fast-lossless-image-compression https://phoboslab.org/log/2021/11/qoi-fast-lossless-image-co...
https://news.ycombinator.com/item?id=34035024 https://news.ycombinator.com/item?id=34035024
- edflsafoiewq 3y agoAFAICT the spec does not exclude zero-size images, which would make the smallest image 22 bytes (14 bytes header + 8 byte end marker). Otherwise the pixel in a 1x1 image can be encoded in 1 byte, giving 23 bytes total.
- lifthrasiir 3y agoThat's not too interesting and has been covered too many times (e.g. [1], [2]). Maybe it's much more interesting to compare the smallest possible file for a particular pattern like a 2x2 B&W checkerboard. [1] https://shkspr.mobi/blog/2024/01/whats-the-smallest-file-size-for-a-1-pixel-image/ https://shkspr.mobi/blog/2024/01/whats-the-smallest-file-siz... [2] https://github.com/mathiasbynens/small/ https://github.com/mathiasbynens/small/