class Acbaker::Processors::Constraint
Public Instance Methods
run(image, image_spec, width = nil, height = nil)
click to toggle source
# File lib/acbaker/processors/constraint.rb, line 4 def run(image, image_spec, width = nil, height = nil) # resize image image.change_geometry("#{width}x#{height}") do |px, py, i| image.resize!(px, py) image_spec['size'] = "#{px}x#{py}" end image end