def autoSize(image, resolution=1920):
    """Determines the size of an image by setting the largest side to the size of the resolution"""
    if image.width >= image.height:
        size = (resolution, round((resolution / image.width) * image.height))
    else:
        size = (round((resolution / image.height) * image.width), resolution)
    return size