janalysis/imageinput.py
def crop_image_to_multiple_eight(image):
    """Returns a crop of an image to be multiples of 8."""
    dimensions = image.size
    width = dimensions[0]
    height = dimensions[1]
    new_width = width - (width % 8)
    new_height = height - (height % 8)
    box = (0, 0, new_width, new_height)
    return image.crop(box)
Returns a crop of an image to be multiples of 8.
Returns a crop of an image to be multiples of 8.
Returns a crop of an image to be multiples of 8 .
def crop_image_to_multiple_eight(image):
    dimensions = image.size
    width = dimensions[0]
    height = dimensions[1]
    new_width = width - (width % 8)
    new_height = height - (height % 8)
    box = (0, 0, new_width, new_height)
    return image.crop(box)
def crop_image_to_multiple_eight ( image ) : dimensions = image . size width = dimensions [ 0 ] height = dimensions [ 1 ] new_width = width - ( width % 8 ) new_height = height - ( height % 8 ) box = ( 0 , 0 , new_width , new_height ) return image . crop ( box )
Returns a crop of an image to be multiples of 8.
Returns a crop of an image to be multiples of 8 .
"""Returns a crop of an image to be multiples of 8."""
image