fixed thumbnails by getting rid of the b"" on each thumbnail base64 encoded string
This commit is contained in:
@@ -120,5 +120,6 @@ def getExif(file):
|
||||
f.close()
|
||||
|
||||
fthumbnail = base64.b64encode(tags['JPEGThumbnail'])
|
||||
fthumbnail = str(fthumbnail)[2:-2]
|
||||
|
||||
return fthumbnail
|
||||
@@ -17,7 +17,7 @@
|
||||
{% endif %}
|
||||
{{obj.name}}
|
||||
{% if obj.type=="Image" %}
|
||||
<img width="64" height="64" src="data:image/jpg;base64,{{obj.thumbnail}}"></img>
|
||||
<img width="64" height="64" src="data:image/jpeg;base64,{{obj.thumbnail}}"></img>
|
||||
{% endif %}
|
||||
</td></td><td>{{obj.size_MB}}</td><td>{{obj.hash}}</tr>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user