README.md in blurhash-0.1.4 vs README.md in blurhash-0.1.5
- old
+ new
@@ -20,19 +20,21 @@
$ gem install blurhash
## Usage
-You need to read in the image pixel data yourself, for example with RMagick:
+To generate the blurhash string from an image file, you need to read in the image pixel data yourself, for example with RMagick:
```ruby
require 'blurhash'
require 'rmagick'
image = Magick::ImageList.new('foo.png')
puts Blurhash.encode(image.columns, image.rows, image.export_pixels)
```
+
+To display the visual component once you have the blurhash string, you need another library in JavaScript, Swift, Kotlin and so on. Fore more information, see [the original blurhash repository](https://github.com/woltapp/blurhash).
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.