code: def get_exif_data(self, image):
          
          exif_data = {}
          info = image._getexif()
          if info:
              for tag, value in info.items():
                  decoded = TAGS.get(tag, tag)
                  if decoded == "GPSInfo":
                      gps_data = {}
                      for t in value:
                          sub_decoded = GPSTAGS.get(t, t)
                          gps_data[sub_decoded] = value[t]
  
                      exif_data[decoded] = gps_data
                  else:
                      exif_data[decoded] = value
  
          return exif_data
docs: Returns a dictionary from the exif data of an PIL Image item. Also converts the GPS Tags