pyguymer3.image.dict2exif

pyguymer3.image.dict2exif(exif, /, *, mode='RGB')[source]

Convert a dictionary to an EXIF class

This function accepts a dictionary of key/value pairs and uses it to construct an EXIF class suitable for PIL to write to an image upon saving.

Parameters:
  • exif (dict) – the dictionary

  • mode (str, optional) – the mode of the temporary image that is created to initialize the EXIF class

Returns:

exifClass – the EXIF class

Return type:

PIL.Image.Exif

Notes

Copyright 2017 Thomas Guymer [1]

References