def _calculate_scaling_factor(self, x_image, y_image, geometry, options):
        crop = options['crop']
        factors = (x_image / geometry[0], geometry[1] / y_image)
        return max(factors) if crop else min(factors)
dataset/ETHPy150Open mariocesar/sorl-thumbnail/sorl/thumbnail/engines/base.py/EngineBase._calculate_scaling_factor/swapped operands of `/`