All Projects → SolitudeSF → blurhash

SolitudeSF / blurhash

Licence: MIT license
Blurhash encoder/decoder algorithm implemenation in Nim.

Programming Languages

nim
578 projects

Projects that are alternatives of or similar to blurhash

rainbowify
Fabric mod for rainbow and blur backgrounds in minecraft guis
Stars: ✭ 18 (-30.77%)
Mutual labels:  blur
MM.Hash
Profit Switching Miner For HiveOS/Linux- OLD VERSION: Project Moved To SWARM! https://github.com/MaynardMiner/SWARM
Stars: ✭ 17 (-34.62%)
Mutual labels:  hash
java-gm
Java语言国密基础库
Stars: ✭ 33 (+26.92%)
Mutual labels:  hash
haiti
🔑 A CLI tool to identify the hash type of a given hash.
Stars: ✭ 95 (+265.38%)
Mutual labels:  hash
space-router
Framework agnostic router for single page apps
Stars: ✭ 36 (+38.46%)
Mutual labels:  hash
Poseidon252
Reference implementation for the Poseidon Snark-friendly Hash algorithm.
Stars: ✭ 95 (+265.38%)
Mutual labels:  hash
sha3
SHA3 for Ruby is a XKCP based native (C) binding to SHA3 (FIPS 202) cryptographic hashing algorithm
Stars: ✭ 35 (+34.62%)
Mutual labels:  hash
react-native-shadow-2
Cross-platform shadow for React Native. Supports Android, iOS, Web and Expo.
Stars: ✭ 442 (+1600%)
Mutual labels:  blur
py-cryptonight
Python Cryptonight binding / extension. Monero hash function, proof-of-work, cn_slow_hash()
Stars: ✭ 20 (-23.08%)
Mutual labels:  hash
Friendly Code Editor
Try this Friendly Code Editor. You'll love it. I made it with a lot of effort. It has some great features. I will update it adequately later. Very helpful for developers. Enjoy and share.
Stars: ✭ 20 (-23.08%)
Mutual labels:  blur
ipld-explorer-cli
🔎 Explore the IPLD directed acyclic graph with your keyboard
Stars: ✭ 22 (-15.38%)
Mutual labels:  hash
telfhash
Symbol hash for ELF files
Stars: ✭ 75 (+188.46%)
Mutual labels:  hash
fhash
fHash - an open source files hash calculator for Windows and macOS
Stars: ✭ 222 (+753.85%)
Mutual labels:  hash
BlockHashLoc
Recover files using lists of blocks hashes, bypassing the File System entirely
Stars: ✭ 45 (+73.08%)
Mutual labels:  hash
SHA256
A C++ SHA256 implementation.
Stars: ✭ 79 (+203.85%)
Mutual labels:  hash
Blurberry
Transparent blur using UIVisualEffectView without subclassing
Stars: ✭ 46 (+76.92%)
Mutual labels:  blur
hashids.pm
Hashids, ported for Perl
Stars: ✭ 15 (-42.31%)
Mutual labels:  hash
cpu-gbfilter
♨️ Optimized Gaussian blur filter on CPU.
Stars: ✭ 14 (-46.15%)
Mutual labels:  blur
node-blake2
All four BLAKE2 variants (blake2b, blake2bp, blake2s, blake2sp) with stream support for Node.js
Stars: ✭ 52 (+100%)
Mutual labels:  hash
tss-rb
A Ruby implementation of Threshold Secret Sharing (Shamir) as defined in IETF Internet-Draft draft-mcgrew-tss-03.txt
Stars: ✭ 22 (-15.38%)
Mutual labels:  hash

blurhash

Pure Nim implementation of Blurhash

Blurhash is an algorithm written by Dag Ågren for Wolt (woltapp/blurhash) that encodes an image into a short (~20-30 byte) ASCII string. When you decode the string back into an image, you get a gradient of colors that represent the original image. This can be useful for scenarios where you want an image placeholder before loading, or even to censor the contents of an image a la Mastodon.

Installation

nimble install blurhash

Usage

Add requires "blurhash" to your .nimble file.

Encoding

import blurhash, imageman/[images, colors]

let
  image = loadImage[ColorRGB]("image.png")
  hash = image.encode(5, 5)

echo hash

This snippet hashes following image into this compact string: UrQ]$mfQ~qj@ocofWFWB?bj[D%azf6WBj[t7

reference_image

Decoding

import blurhash, imageman/images

let image = "UrQ]$mfQ~qj@ocofWFWB?bj[D%azf6WBj[t7".decode[ColorRGBU](500, 500)

image.savePNG "blurred.png"

This results in following image:

blurred_image

Other

Reference image author - https://rigani.me

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].