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: about 2 months 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
- Host: GitHub
- URL: https://github.com/valeriyvan/swift-blurhash
- Owner: valeriyvan
- License: mit
- Created: 2024-10-23T10:04:41.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-24T13:07:47.000Z (about 1 year ago)
- Last Synced: 2025-10-07T20:47:53.582Z (2 months ago)
- Topics: blur, blurhash, hash, image, swift
- Language: Swift
- Homepage:
- Size: 1.67 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 |
| ------------- | ------------- | --------------------------------- |
|  | 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](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.