      logger.trace("Returning images: (filenames: %s, batch shape: %s)", filenames, batch.shape)
      return batch
  
  
  def read_image_hash(filename, output_shape=False):
      """ Return the `sha1` hash of an image saved on disk.
  
      Parameters
      ----------
      filename: str
          Full path to the image to be loaded.
 
</s> remove         Full path to the image to be loaded.
    output_shape: bool
        If ``True`` then a tuple is returned with the shape tuple of the image as the final value.
        Default: ``False``
 </s> add         Full path to the image to be retrieve the meta information for. </s> remove def read_image_hash_batch(filenames, output_shape=False):
    """ Return the `sha` hash of a batch of images
 </s> add def read_image_meta_batch(filenames):
    """ Read the Faceswap metadata stored in a batch extracted faces' exif headers. </s> remove     hash: str
        The hash of the face. This cannot be set until the file is saved due to image compression,
        but will be set if loading data from :func:`from_alignment`
 </s> add  </s> remove     image_hash: str
        The :func:`hashlib.hexdigest()` representation of the `sha1` hash of the encoded image
 </s> add  </s> remove def encode_image_with_hash(image, extension):
    """ Encode an image, and get the encoded image back with its `sha1` hash.
 </s> add def encode_image(image, extension, metadata=None):
    """ Encode an image.
def read_image_meta(filename):
    """ Read the Faceswap metadata stored in an extracted face's exif header.
      logger.trace("Returning images: (filenames: %s, batch shape: %s)", filenames, batch.shape)
      return batch
  
  
def read_image_meta(filename):
    """ Read the Faceswap metadata stored in an extracted face's exif header.
def read_image_meta(filename):
    """ Read the Faceswap metadata stored in an extracted face's exif header.
  
      Parameters
      ----------
      filename: str
          Full path to the image to be loaded.
keep keep keep keep replace replace keep keep keep keep keep
 Update extracted faces to use PNG EXIF data (#1123)

Documentation
  - Update Usage.md, align.rst and image.rst
lib.image.py
  - read_image - Remove hash return, add metadata return
  - Remove read_image_hash functions
  - Add read_image_meta functios
  - Replace encode_image_with_hash with encode_image (to store metadata)
  - Add png meta reading and writing functions
  - Update Image Loaders/Savers to handle metadata rather than hashes
lib.training_data
  - Naming updates to remove references to hashes
lib.align.Alignments
  - Add versioning notes
  - Increment alignments version to 2.1
  - Deprecate hashing lookup functions
  - Replace filter_hashes with filter_faces
lib.align.detected_face
  - DetectedFace
    - Remove hash property
    - Add png header data serializing/deserializing functions
  - Mask
    - Add png header data serializing/deserializing functions
  - add update_legacy_png_header function to update png meta data
lib.cli.args - Deprecate alignments files for training
- plugins.train.trainer
  - Update alignments/mask code to read png header data
- scripts.convert
  - Aligned images folder - read data from png headers
- scripts.extract
  - Write png header information and no longer store hash of face
- tools.alignments
  - remove leftover-faces, merge and update-hashes jobs
  - Update jobs to use png meta data rather than hashes
- tools.manual
  - Update extract code to output png meta data and don't store hashes
  - Perform check on launch that tool is not pointing at a faces folder
tools.mask
  - Update to use png meta data
tools.sort
  - Update to use png meta data 
lib/image.py