Class: Wildfire::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/wildfire.rb

Class Method Summary collapse

Class Method Details

.cut_a4(source_image_path) ⇒ Object



14
15
16
17
# File 'lib/wildfire.rb', line 14

def cut_a4(source_image_path)
  manager = Manager.new(source_image_path)
  manager.cut_page!(manager.predicted_page_coords)
end

.cut_printed_screens(source_image_path) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/wildfire.rb', line 19

def cut_printed_screens(source_image_path)
  a4_path = cut_a4(source_image_path)
  screen_cutter = Converter::ScreenCutter.new(a4_path)
  screen_cutter.cut_screens!

  screen_cutter.screen_paths
end