Skip to content

Commit 17fc7f1

Browse files
authored
Update README.md
1 parent b88f087 commit 17fc7f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Blurhash is an algorithm that lets you transform image data into a small text re
2222
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:
2323

2424
```python
25-
def blurhash.decode(blurhash, width, height, punch = 1.0, linear = False)
25+
blurhash.decode(blurhash, width, height, punch = 1.0, linear = False)
2626
"""
2727
Decodes the given blurhash to an image of the specified size.
2828
@@ -38,7 +38,7 @@ to a relatively small size and then scale the result up, as it
3838
basically looks the same anyways.
3939
"""
4040

41-
def blurhash_encode(image, components_x = 4, components_y = 4, linear = False):
41+
blurhash.encode(image, components_x = 4, components_y = 4, linear = False):
4242
"""
4343
Calculates the blurhash for an image using the given x and y component counts.
4444

0 commit comments

Comments
 (0)