Class: BlurhashEncoder
- Inherits:
-
Object
- Object
- BlurhashEncoder
- Includes:
- ENCODER
- Defined in:
- lib/blurhash_encoder/blurhash_encoder.rb
Instance Method Summary collapse
Methods included from ENCODER
Instance Method Details
#blurhash(image_url, x, y) ⇒ Object
7 8 9 10 |
# File 'lib/blurhash_encoder/blurhash_encoder.rb', line 7 def blurhash(image_url, x, y) File.write 'tmp/in.png', URI.open(image_url).read encode(x,y) end |