Class: BlurhashEncoder

Inherits:
Object
  • Object
show all
Includes:
ENCODER
Defined in:
lib/blurhash_encoder.rb

Constant Summary collapse

VERSION =
"1.0"

Instance Method Summary collapse

Methods included from ENCODER

#encode

Instance Method Details

#blurhash(image_url, x, y) ⇒ Object



9
10
11
12
# File 'lib/blurhash_encoder.rb', line 9

def blurhash(image_url, x, y)
  File.write 'tmp/in.png', URI.open(image_url).read
  encode(x,y)
end