ember-blurhash
blurhash decoding modifier for ember, allow decode blurhash images and use it as css-variable
Compatibility
- Ember.js v3.12 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
Installation
ember install ember-blurhash
Usage
Positional params:
1.) hash (string)
2.) width (int) = 320
3.) height (int) = 240
4.) punch (int) (~contrast) of the blurhash decoding algorithm = 1
5.) rendered image width (int) = width = 320
6.) rendered image height (int) = height = 240
Additional hash params:
q = 0.85 // quality
f = "image/jpeg" // format
p = "--blurhash-image" // css variable name
bg = true // apply as backgound-image instead of css-variable
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.