
Facilitates encoding and decoding of blur hashes in applications, addressing inconsistencies in existing implementations. Offers a unified API and sample apps for various platforms, ensuring consistent image processing.
A Kotlin Multiplatform library to use blurhash in your Android App, iOS / Mac App & JVM Backend.
Android |
iOS |
JVM |
|---|---|---|
![]() |
![]() |
![]() |
If you've tried using blurhash, you qickly stumple upon the main repository. They provide sources for Swift, Typescript, Python, Kotlin and C. However:
The goal of this library is to solve all of the above mentioned problems, provide a common API and good samples for each platform.
From Kotlin Multiplatform:
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("com.vanniktech:blurhash:0.4.0-SNAPSHOT")
}
}
}
}From Android / JVM Multiplatform:
dependencies {
implementation("com.vanniktech:blurhash:0.4.0-SNAPSHOT")
}From iOS:
pod 'BlurHash', :git => 'https://github.com/vanniktech/blurhash', :tag => "0.4.0-SNAPSHOT"Use com.vanniktech.blurhash.BlurHash directly in your platform specific code to encode as well as decode:
Bitmap
UIImage (Use import blurhash & BlurHash.shared)BufferedImage
Without them this would not exist!
Copyright (C) 2022 - Niklas Baudy
Licensed under the MIT License
A Kotlin Multiplatform library to use blurhash in your Android App, iOS / Mac App & JVM Backend.
Android |
iOS |
JVM |
|---|---|---|
![]() |
![]() |
![]() |
If you've tried using blurhash, you qickly stumple upon the main repository. They provide sources for Swift, Typescript, Python, Kotlin and C. However:
The goal of this library is to solve all of the above mentioned problems, provide a common API and good samples for each platform.
From Kotlin Multiplatform:
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("com.vanniktech:blurhash:0.4.0-SNAPSHOT")
}
}
}
}From Android / JVM Multiplatform:
dependencies {
implementation("com.vanniktech:blurhash:0.4.0-SNAPSHOT")
}From iOS:
pod 'BlurHash', :git => 'https://github.com/vanniktech/blurhash', :tag => "0.4.0-SNAPSHOT"Use com.vanniktech.blurhash.BlurHash directly in your platform specific code to encode as well as decode:
Bitmap
UIImage (Use import blurhash & BlurHash.shared)BufferedImage
Without them this would not exist!
Copyright (C) 2022 - Niklas Baudy
Licensed under the MIT License