def width2height(bbox, width):
    """Get optimized height for a given width regarding a known bbox"""
    x1 = bbox[0]
    y1 = bbox[1]
    x2 = bbox[2]
    y2 = bbox[3]
    return int(width * (y2 - y1) / (x2 - x1))