Class: Apparat::Reducer

Inherits:
Sprout::Executable::Base
  • Object
show all
Defined in:
lib/apparat/reducer.rb

Instance Method Summary collapse

Instance Method Details

#deblockingObject

The strength of the Flash Players internal deblocking filter



23
# File 'lib/apparat/reducer.rb', line 23

add_param :deblocking, String, { :shell_name => '-d', :delimiter => ' ' }

#executableObject

The default executable target



28
# File 'lib/apparat/reducer.rb', line 28

set :executable, :reducer

#inputObject

The source file to reduce



8
# File 'lib/apparat/reducer.rb', line 8

add_param :input, File, { :required => true, :shell_name => '-i', :delimiter => ' ' }

#outputObject

The reduced file



13
# File 'lib/apparat/reducer.rb', line 13

add_param :output, String, { :shell_name => '-o', :delimiter => ' ' }

#qualityObject

JPEG compression level. “1.0” is maximum quality, “0.0” is minimum quality.



18
# File 'lib/apparat/reducer.rb', line 18

add_param :quality, String, { :shell_name => '-q', :default => '1.0', :delimiter => ' ' }