def flat(*nums):
    # Credit to
    # https://snipnyet.com/adierebel/5b45b79b77da154922550e9a/crop-and-resize-image-with-aspect-ratio-using-pillow/
    """Build a tuple of ints from float or integer
    arguments. Useful because PIL crop and resize require integer
    points."""

    return tuple(int(round(n)) for n in nums)