lib/chunky_png.rb in chunky_png-0.0.4 vs lib/chunky_png.rb in chunky_png-0.0.5

- old
+ new

@@ -44,10 +44,10 @@ def load_from_io(io) ChunkyPNG::Datastream.read(io) end def load_from_file(file) - File.open(file, 'r') { |f| load_from_io(f) } + File.open(file, 'rb') { |f| load_from_io(f) } end def load_from_memory(string) load_from_io(StringIO.new(string)) end