discord / lilliput

Resize images and animated GIFs in Go
https://discord.com/blog/how-discord-resizes-150-million-images-every-day-with-go-and-c
Other
1.94k stars 124 forks source link

Add thumbhash encoder #127

Closed slam closed 1 year ago

slam commented 1 year ago

The c++ implementation of thumhash encoder is based on the rust reference implementation found here:

https://github.com/evanw/thumbhash/blob/main/rust/src/lib.rs

We modified it in the following ways:

slam commented 1 year ago

@brian-armstrong-discord High level questions I have:

I modeled this somewhat after the existing non-opencv encoders. Definitely open to suggestions.