Allow the avif extension

This commit is contained in:
Timmy Welch 2023-12-21 17:52:58 -08:00
parent 7d1bf8525b
commit 1ef6e40c29

View File

@ -203,7 +203,7 @@ def get_page_name_list(files: list[str]) -> list[str]:
page_list = []
for name in files:
if (
os.path.splitext(name)[1].casefold() in [".jpg", ".jpeg", ".png", ".gif", ".webp"]
os.path.splitext(name)[1].casefold() in [".jpg", ".jpeg", ".png", ".gif", ".webp", ".avif"]
and os.path.basename(name)[0] != "."
):
page_list.append(name)