GoogleChromeLabs / squoosh

Make images smaller using best-in-class codecs, right in the browser.
https://squoosh.app
Apache License 2.0
21.82k stars 1.53k forks source link

Adding the Quite OK Image (QOI) Codec #1384

Closed aryanpingle closed 11 months ago

aryanpingle commented 11 months ago

Adds the QOI (Quite OK Image Format) codec to Squoosh.

QOI is a lossless, super-fast codec that is stupidly simple to understand and implement. It's written by a single individual, yet manages to hold its own against giants like PNG in terms of compression ratios. This PR adds the original (and final) version of QOI, but there are more performant variants of QOI out there - I highly encourage future contributors to try adding them to Squoosh!

IMO this is a great way to showcase how easy it is to add codecs to the codebase, without having to worry about platforms and compatibility.