mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
jumbo merge part two
This commit is contained in:
@@ -175,7 +175,7 @@ class ExtraNetworksPage:
|
||||
"""
|
||||
Find a preview PNG for a given path (without extension) and call link_preview on it.
|
||||
"""
|
||||
preview_extensions = ["jpg", "png", "webp", "tiff", "jp2"]
|
||||
preview_extensions = ["jpg", "jpeg", "png", "webp", "tiff", "jp2"]
|
||||
potential_files = sum([[path + "." + ext, path + ".preview." + ext] for ext in preview_extensions], [])
|
||||
for file in potential_files:
|
||||
if os.path.isfile(file):
|
||||
|
||||
Reference in New Issue
Block a user