From 17ab574eb080b18a9849d7111982b786513f214c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DNyymix=E2=80=9D?= Date: Fri, 27 May 2022 16:25:31 +0300 Subject: [PATCH] Add dictionary export --- exif.py | 4 ++++ 1 file changed, 4 insertions(+) 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)