Sha256: 37dbe48b16234a51c292fad3fb66fbcb7c7cc69944b11e9fbb27885b6bc78ab0
Contents?: true
Size: 663 Bytes
Versions: 26
Compression:
Stored size: 663 Bytes
Contents
module MiniMagick class Image class << self # patch to handle paths with spaces in it until new version of MiniMagick # gets released. def write(output_to) if output_to.kind_of?(String) || !output_to.respond_to?(:write) FileUtils.copy_file @path, output_to run_command "identify", output_to.to_s.inspect # Verify that we have a good image else # stream File.open(@path, "rb") do |f| f.binmode while chunk = f.read(8192) output_to.write(chunk) end end output_to end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems