def min_size(size_set):
    """
    Calculates the minimum dimensions from a size_set
    """
    width, height = 0, 0
    for s in size_set.size_set.all():
        w, h, a = s.get_dimensions()
        width = max(width, w)
        height = max(height, h)

    return width, height