def is_progressive ( image ) : if not isinstance ( image , Image . Image ) : # Can only check PIL images for progressive encoding. return False return ( 'progressive' in image . info ) or ( 'progression' in image . info )
python the best way to detect adege of image
Check to see if an image is progressive .
def is_progressive(image):
    """
    Check to see if an image is progressive.
    """
    if not isinstance(image, Image.Image):
        # Can only check PIL images for progressive encoding.
        return False
    return ('progressive' in image.info) or ('progression' in image.info)