Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (8 sloc) 381 Bytes
#!/usr/bin/env ruby
require File.expand_path(File.dirname(__FILE__) + '/wkhtml_image_executable')
executable = `which wkhtmltoimage`.chomp
if executable.empty?
executable = File.join(File.dirname(__FILE__), WkhtmlImageExecutable.new.binary_wkhtmltoimage)
end
arguments = $*.map { |arg| arg.include?(' ') ? %Q("#{arg}") : arg }
system(executable + " " + arguments.join(" "))
Something went wrong with that request. Please try again.