def scale(self, image, geometry, options):
        """
        Wrapper for ``_scale``
        """
        upscale = options['upscale']
        x_image, y_image = map(float, self.get_image_size(image))
        factor = self._calculate_scaling_factor(x_image, y_image, geometry, options)

        if 1 < factor or upscale:
            width = toint(x_image * factor)
            height = toint(y_image * factor)
            image = self._scale(image, width, height)

        return image
dataset/ETHPy150Open mariocesar/sorl-thumbnail/sorl/thumbnail/engines/base.py/EngineBase.scale/swapped operands of `<`