read_image_meta
- lib.image.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 retrieve the meta information for.
- Returns:
The output dictionary will contain the width and height of the png image as well as any itxt information.
- Return type:
dict
Example
>>> image_file = "/path/to/image.png" >>> metadata = read_image_meta(image_file) >>> width = metadata["width] >>> height = metadata["height"] >>> faceswap_info = metadata["itxt"]