Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (8 sloc) 0.381 kB
#!/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(" "))
Jump to Line
Something went wrong with that request. Please try again.