diff --git a/exif.py b/exif.py index d693e30..c678c4e 100644 --- a/exif.py +++ b/exif.py @@ -59,6 +59,9 @@ class Exif: def getJson(self): return json.dumps(self.exif) + + def getDic(self): + return self.exif def __str__(self): return self.filename @@ -70,5 +73,6 @@ xxx = Exif('./photo.jpg') print(xxx.getJson()) print(xxx.getValue('Keywords')) print(xxx.getValue('DateTimeOriginal')) +print(xxx.getDic()) print(xxx)