# File lib/paperclip/geometry_transformation.rb, line 71 def scaled_by(other) other = Geometry.new("#{other}%") unless other.is_a? Geometry if other.height > 0 Geometry.new(self.width * other.width / 100, self.height * other.height / 100) else Geometry.new(self.width * other.width / 100, self.height * other.width / 100) end end