module Wallzilla::Montage
Public Instance Methods
montage()
click to toggle source
# File lib/wallzilla/montage.rb, line 11 def montage Gem.win_platform? ? "montage.exe" : "montage" end
process!(file_handlers, output, fill)
click to toggle source
# File lib/wallzilla/montage.rb, line 5 def process!(file_handlers, output, fill) files = file_handlers.map(&:path).join(" ") cmd = "#{montage} -mode concatenate -background #{fill} -tile 5x2 #{files} #{output}" system(cmd) end