Edit save_images.rb with
def capture_page_image(browser, url, width, file_name)
width, height = width.split('x')
puts `"#{browser}" #{@config['phantomjs_options']} "#{snap_file}" "#{url}" "#{width}" "#{file_name}" "#{height}"`
endEdit snap.js with
var view_port_height = system.args[4];
page.viewportSize = { width: view_port_width, height: view_port_height};Edit config with
screen_widths:
- 1280x1024
You're right, and that could be done in the snap.js file without modifying Wraith at all... okay, I will use that for now, thanks!