code: 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)
docs: Check to see if an image is progressive.