diverse fixes

This commit is contained in:
root
2020-03-14 23:07:14 +00:00
parent 9caa8dbcd8
commit 771a9e34c7
5 changed files with 9 additions and 12 deletions

View File

@@ -67,7 +67,8 @@ def thumb(size=64,name=''):
image=image.rotate(270, expand=True)
elif exif[orientation] == 8:
image=image.rotate(90, expand=True)
thumb=ImageOps.fit(image,s,Image.ANTIALIAS)
thumb=ImageOps.fit(image,s,Image.ANTIALIAS)
print("writing %s"% thumb_name)
os.makedirs(thumb_path,exist_ok=True)
@@ -80,7 +81,7 @@ def thumb(size=64,name=''):
return send_from_directory(os.path.join("../thumbs","thumbs_%i" % size),name)
@page_blueprint.route('/<path:name>/',strict_slashes=True)
@page_blueprint.route('/<path:name>/',strict_slashes=False)
@page_blueprint.route('/')
def post(name=''):
print("Post: %s" % name)