def transformations(self, size, target_size):
        sw, sh = size
        tw, th = target_size
        if not self.expand and  sh<=th:
            return []
        w = sw*th//sh
        return [('resize', (w, th))]
dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/unstable/utils/image_resizers.py/ResizeFixedHeight.transformations/original