tif now named

This commit is contained in:
2024-06-26 22:44:59 +02:00
parent 4b616b5848
commit 4740fae13e

View File

@@ -153,6 +153,9 @@ def listfolder(folder: str):
thumbnails.append((folder, item))
for raw in rawext:
if os.path.exists(os.path.join(folder, os.path.splitext(item)[0] + raw)):
if raw == ".tif" or raw == ".tiff" or raw == ".TIF" or raw == ".TIFF":
image += f': <a href="{WEBROOT}{urllib.parse.quote(folder.removeprefix(ROOT))}/{urllib.parse.quote(os.path.splitext(item)[0])}{raw}">TIFF</a>'
else:
image += f': <a href="{WEBROOT}{urllib.parse.quote(folder.removeprefix(ROOT))}/{urllib.parse.quote(os.path.splitext(item)[0])}{raw}">RAW</a>'
image += "</figcaption></figure>"
images.extend([image])