evanw / evanw/thumbhash

An alternative method

Open
#22 3 comments 4 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.2k
Forks
91
PR merge metrics
No merged PRs in 30d

Description

Hi Evan! I saw a post on Hacker News about you making thumbhash. But I think there already exists a simple compression method for tiny images, called BC1 (DXT1) texture compression - https://en.wikipedia.org/wiki/S3_Texture_Compression. It uses 4 bits per RGB pixel, I believe a decompressor can be made in under of 500 Bytes of code.

I wrote a comment about it - https://news.ycombinator.com/item?id=35268000 , and somebody actually implemented it - https://i.imgur.com/eIYZAmj.png (these are 8x8 pixel images, 32 Bytes each, enlarged with a bilinear interpolation).

It exists for decades and I wonder if you are aware of it. Maybe you could mention it in your repository, or do some comparison.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.