Sha256: a2aed8698c0cd5e5cb8c95e60bb0d7c85e5eeda5fb17b56770a04144feee8738

Contents?: true

Size: 642 Bytes

Versions: 1

Compression:

Stored size: 642 Bytes

Contents

require 'thor'
module VideoSprites
  class CLI < Thor

    desc "process <input_file> <output_directory>", "Create video thumbnail sprites"
    option :seconds,     default: 10,  type: :numeric
    option :width,       default: 200, type: :numeric
    option :columns,     default: 5,   type: :numeric
    option :group,       default: 20,  type: :numeric
    option :gif,         default: false, type: :boolean
    option :keep_images, default: false, type: :boolean
    def process(input_file, output_directory)
      processor = VideoSprites::Processor.new(input_file, output_directory, options)
      processor.process
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
video_sprites-0.2.0 lib/video_sprites/cli.rb