def get_image_ratio(self, image, options):
        """
        Calculates the image ratio. If cropbox option is used, the ratio
        may have changed.
        """
        cropbox = options['cropbox']

        if cropbox:
            x, y, x2, y2 = parse_cropbox(cropbox)
            x = x - x2
            y = y2 - y
        else:
            x, y = self.get_image_size(image)

        return float(x) / y
dataset/ETHPy150Open mariocesar/sorl-thumbnail/sorl/thumbnail/engines/base.py/EngineBase.get_image_ratio/swapped operands of `-`