Module: FDimageBase64

Defined in:
lib/fdimage/fdimage_base64.rb

Instance Method Summary collapse

Instance Method Details

#initialize(data) ⇒ Object



2
3
4
5
6
7
# File 'lib/fdimage/fdimage_base64.rb', line 2

def initialize(data)
  if check_base_64(data)
    data = Base64.decode64(data)
    @image = MiniMagick::Image.read(data)
  end
end