diff --git a/photos.py b/photos.py index 91bfb58..3996022 100644 --- a/photos.py +++ b/photos.py @@ -120,5 +120,6 @@ def getExif(file): f.close() fthumbnail = base64.b64encode(tags['JPEGThumbnail']) + fthumbnail = str(fthumbnail)[2:-2] return fthumbnail \ No newline at end of file diff --git a/templates/photos.html b/templates/photos.html index 822cef9..8ef4ad6 100644 --- a/templates/photos.html +++ b/templates/photos.html @@ -17,7 +17,7 @@ {% endif %}  {{obj.name}} {% if obj.type=="Image" %} - + {% endif %} {{obj.size_MB}}{{obj.hash}} {% endfor %}