source/utils.py
def is_image_file(filename):
    """ Check if file is an image
    :param filename: file name string
    :return: Boolean toggle

    """

    return any(filename.endswith(extension) for extension in ['.bmp', '.png', '.jpg', '.jpeg', '.JPG', '.JPEG', '.PNG'])
 Check if file is an image
    :param filename: file name string
    :return: Boolean toggle

    
Check if file is an image
Check if file is an image
def is_image_file(filename):
    return any(filename.endswith(extension) for extension in ['.bmp', '.png', '.jpg', '.jpeg', '.JPG', '.JPEG', '.PNG'])
def is_image_file ( filename ) : return any ( filename . endswith ( extension ) for extension in [ '.bmp' , '.png' , '.jpg' , '.jpeg' , '.JPG' , '.JPEG' , '.PNG' ] )
Check if file is an image
Check if file is an image
""" Check if file is an image
    :param filename: file name string
    :return: Boolean toggle

    """
None
filename
file name string
file name string