lib/middleware/reformat.rb in tracksperanto-2.9.5 vs lib/middleware/reformat.rb in tracksperanto-2.9.6

- old
+ new

@@ -3,12 +3,15 @@ # This middleware reformats (scales) the track setup to a specific pixel resolution. Very useful for # applying proxy tracks to full-res images class Tracksperanto::Middleware::Reformat < Tracksperanto::Middleware::Base - # To which format we have to scale - attr_accessor :width, :height - cast_to_int :width, :height + parameter :width, :cast => :int, :desc => "New comp width in px", :default => 1080 + parameter :height, :cast => :int, :desc => "New comp height in px", :default => 1080 + + def self.action_description + "Reformat the comp together with it's trackers to conform to a specific format" + end # Called on export start def start_export( img_width, img_height) @width ||= img_width # If they be nil @height ||= img_height