swift-blurhash
is a Swift package that generates a short string from an image, which can be sent with the image URL to display a placeholder image on the client while the full image loads.
source image | blurhash | blurred image build from blurhash |
---|---|---|
LLHV6nae2ek8lAo0aeR*%fkCMxn% | ||
L6Pj0^nh.AyE?vt7t7R**0o#DgR4 | ||
LGFFaXYk^6#M@-5c,1J5@@or[j6V | ||
LKO2?V%2Tw=^]~RBVZRi};RPxuwH |
The package contains a refactored, optimized, and fully tested version of the original Swift code from blurhash bundled as a Swift package for easier integration and use.