mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Add option to collapse metadata
This commit is contained in:
parent
c02d618844
commit
f845f614df
7 changed files with 223 additions and 95 deletions
|
@ -10,6 +10,7 @@ from PIL import Image
|
|||
|
||||
import os
|
||||
from datetime import datetime
|
||||
|
||||
dt = datetime.now()
|
||||
|
||||
blueprint = Blueprint('gallery', __name__)
|
||||
|
@ -33,7 +34,8 @@ def image(id):
|
|||
if image is None:
|
||||
abort(404)
|
||||
|
||||
exif = mt.metadata.yoink(os.path.join(current_app.config['UPLOAD_FOLDER'], image['file_name']))
|
||||
exif = mt.metadata.yoink(
|
||||
os.path.join(current_app.config['UPLOAD_FOLDER'], image['file_name']))
|
||||
|
||||
return render_template('image.html', image=image, exif=exif)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue