QOI - The “Quite OK Image Format” for fast, lossless image compression #764
Replies: 4 comments 9 replies
-
|
Interesting find. Some notes:
|
Beta Was this translation helpful? Give feedback.
-
|
Thinking about this some more... the compressed bit stream is really tuned for pixels that have 8-bits per component. For example, the big delta packet So, if used as-is, the main compression benefits are from constant color runs and using A 16-bit 565 variant (or 555) could do better:
Do you know if someone has already investigated applying this to 16-bit pixels? |
Beta Was this translation helpful? Give feedback.
-
|
Asking about it in their repository makes more sense than just starting to hack at the problem. ;) Would you mind doing that? |
Beta Was this translation helpful? Give feedback.
-
|
@phoddie |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@phoddie
This looks like a great fit for Moddable.
https://phoboslab.org/log/2021/11/qoi-fast-lossless-image-compression
https://qoiformat.org/
https://github.com/phoboslab/qoi
QOI is fast. It losslessy compresses images to a similar size of PNG, while offering 20x-50x faster encoding and 3x-4x faster decoding.
QOI is simple. The reference en-/decoder fits in about 300 lines of C. The file format specification is a single page PDF.
The O(n) decoding would suit the micros and might speed up animations.
Someone has done (an out of date) typescript port:
https://github.com/panzi/jsqoi
Beta Was this translation helpful? Give feedback.
All reactions