lib/viddl/video/clip/crop.rb
# Token added to clip filename for crop args
# @param [Hash] options
# @option options [Hash] :crop The desired crop parameters (:x, :y, :width, :height)
# @return [String, nil]
Token added to clip filename for crop args
Token added to clip filename for crop args
def filename_token(options = {})
          unless options[:crop].nil?
            crop = options[:crop]
            "cx#{crop[:x]}cy#{crop[:y]}cw#{crop[:width]}ch#{crop[:height]}"
          end
        end
def filename_token ( options = { } ) unless options [ :crop ] . nil? crop = options [ :crop ] "cx#{crop[:x]}cy#{crop[:y]}cw#{crop[:width]}ch#{crop[:height]}" end end
Token added to clip filename for crop args
Token added to clip filename for crop args
None
String, nil
options
:crop The desired crop parameters (:x, :y, :width, :height)
: crop The desired crop parameters ( : x : y : width : height )
None