From 7c8444160038f0ce9b820ba9e9cf670b265d671c Mon Sep 17 00:00:00 2001 From: Cam Date: Sun, 10 Jan 2021 20:14:56 +1100 Subject: [PATCH] quick fixes to get rid of thumbnails in photos --- photos.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/photos.py b/photos.py index 3996022..044c1f0 100644 --- a/photos.py +++ b/photos.py @@ -12,6 +12,7 @@ from pymediainfo import MediaInfo import hashlib import exifread import base64 +import numpy ################################################################################ # Local Class imports @@ -120,6 +121,6 @@ def getExif(file): f.close() fthumbnail = base64.b64encode(tags['JPEGThumbnail']) - fthumbnail = str(fthumbnail)[2:-2] + fthumbnail = str(fthumbnail)[2:-1] - return fthumbnail \ No newline at end of file + return fthumbnail