# File lib/mini_magick.rb, line 19 def from_blob(blob, ext = nil) begin tempfile = ImageTempFile.new(ext) tempfile.binmode tempfile.write(blob) ensure tempfile.close if tempfile end return self.new(tempfile.path, tempfile) end