Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/valeriyvan/swift-blurhash

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
https://github.com/valeriyvan/swift-blurhash

blur blurhash hash image swift

Last synced: 13 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# swift-blurhash
`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 |
| ------------- | ------------- | --------------------------------- |
| ![12c2aca29ea896a628be.jpg](/images/12c2aca29ea896a628be.jpg) | LLHV6nae2ek8lAo0aeR\*%fkCMxn% | ![12c2aca29ea896a628be-blurred.jpg](/images/12c2aca29ea896a628be-blurred.jpg) |
| ![a355ab362a07a267e078.jpg](/images/a355ab362a07a267e078.jpg) | L6Pj0^nh.AyE?vt7t7R\*\*0o#DgR4 | ![a355ab362a07a267e078-blurred.jpg](/images/a355ab362a07a267e078-blurred.jpg) |
| ![e08adedc9f82ade9f9d5.jpg](/images/e08adedc9f82ade9f9d5.jpg) | LGFFaXYk^6#M@-5c,1J5@@or\[j6V | ![e08adedc9f82ade9f9d5-blurred.jpg](/images/e08adedc9f82ade9f9d5-blurred.jpg) |
| ![ea9e499f8080ce9956a8.jpg](/images/ea9e499f8080ce9956a8.jpg) | LKO2?V%2Tw=^]~RBVZRi};RPxuwH |![ea9e499f8080ce9956a8-blurred.jpg](/images/ea9e499f8080ce9956a8-blurred.jpg) |

The package contains a refactored, optimized, and fully tested version of the original [Swift code](https://github.com/woltapp/blurhash/tree/master/Swift) from [blurhash](https://github.com/woltapp/blurhash) bundled as a Swift package for easier integration and use.