Skip to content

Commit f7edebe

Browse files
committed
Update README with pip info
1 parent ec0b54e commit f7edebe

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ PIL.Image.fromarray(numpy.array(blurhash.decode("UBMOZfK1GG%LBBNG,;Rj2skq=eE1s9n
1919

2020
Blurhash is an algorithm that lets you transform image data into a small text representation of a blurred version of the image. This is useful since this small textual representation can be included when sending objects that may have images attached around, since it can be used to quickly create a placeholder for images that are still loading or that should be hidden behind a content warning.
2121

22-
This library contains a pure-python implementation of the blurhash algorithm, closely following the original swift implementation by Dag Ågren. The module has no dependencies (the unit tests require PIL and numpy). It exports only two functions, "encode" and "decode". The usage is as follows:
22+
This library contains a pure-python implementation of the blurhash algorithm, closely following the original swift implementation by Dag Ågren. The module has no dependencies (the unit tests require PIL and numpy). You can install it via pip:
23+
24+
```bash
25+
$ pip3 install blurhash
26+
```
27+
28+
It exports only two functions, "encode" and "decode". The usage is as follows:
2329

2430
```python
2531
blurhash.decode(blurhash, width, height, punch = 1.0, linear = False)

0 commit comments

Comments
 (0)