Method: Pixelart::Image.parse_base64
- Defined in:
- lib/pixelart/image.rb
permalink .parse_base64(str) ⇒ Object
[View source]
31 32 33 34 35 |
# File 'lib/pixelart/image.rb', line 31 def self.parse_base64( str ) blob = Base64.decode64( str ) img_inner = ChunkyPNG::Image.from_blob( blob ) new( img_inner.width, img_inner.height, img_inner ) end |