def get_area_box()

in lambda/challenge.py [0:0]


    def get_area_box(image_width, image_height):
        area_height = image_height * Challenge.AREA_BOX_HEIGHT_RATIO
        area_width = min(
            image_width * Challenge.AREA_BOX_WIDTH_RATIO,
            area_height * Challenge.AREA_BOX_ASPECT_RATIO
        )
        area_left = image_width/2 - area_width/2
        area_top = image_height/2 - area_height/2
        return (area_left,
                area_top,
                area_width,
                area_height)