All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

SplatHash: Image Compression to 16 Bytes with 32×32 Preview Reconstruction

By

unsorted2270

3mo ago· 2 min readenCode

Summary

SplatHash is a new image compression algorithm that encodes any image into exactly 16 bytes (22-character base64url string) and can reconstruct a 32×32 blurry preview in just 0.067 milliseconds. It's similar to existing solutions like BlurHash and ThumbHash but offers smaller size. The project provides implementations in Go (reference), TypeScript/JavaScript, and Python, all producing bit-for-bit identical hashes. The article serves as technical documentation and installation guide for developers.

Key quotes

· 4 pulled
SplatHash encodes any image into exactly 16 bytes (a 22-char base64url string) and decodes it back to a 32×32 blurry preview in 0.067 ms.
Go, TypeScript, and Python all produce bit-for-bit identical hashes.
Go is the reference implementation. All others are verified bit-for-bit against it.
compress any image to 16 bytes and reconstruct a blurry preview. Like blurhash and thumbhash, but smaller.
Snippet from the RSS feed
compress any image to 16 bytes and reconstruct a blurry preview. Like blurhash and thumbhash, but smaller. - junevm/splathash

You might also wanna read