Class: OmgImage::Shell
- Inherits:
-
Object
- Object
- OmgImage::Shell
- Defined in:
- lib/omg_image/shell.rb
Class Method Summary collapse
Class Method Details
.command(options) ⇒ Object
3 4 5 6 |
# File 'lib/omg_image/shell.rb', line 3 def Shell.command() size_opts = [:size] == :auto ? nil : "--window-size=#{[:size]}" "#{chrome} --headless --disable-gpu --no-sandbox --ignore-certificate-errors --screenshot=#{[:file].path} #{size_opts} \"file://#{[:path]}\"" end |