def is_progressive(image):
 if (not isinstance(image, Image.Image)):
  return False
 return (('progressive' in image.info) or ('progression' in image.info))

def is_progressive ( image ) : if ( not isinstance ( image , Image . Image ) ) : return False return ( ( 'progressive' in image . info ) or ( 'progression' in image . info ) )
check to see if an image is progressive .