1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

add avif input support (#1019)

* add avif input support

* add avif
This commit is contained in:
Alex Xu
2025-07-09 11:27:58 -07:00
committed by GitHub
parent 07ef11013a
commit e7a07377ef
5 changed files with 8 additions and 8 deletions

View File

@@ -820,7 +820,7 @@ def removeNonImages(filetree):
for root, dirs, files in os.walk(filetree):
for name in files:
_, ext = getImageFileName(name)
if ext not in ('.png', '.jpg', '.jpeg', '.gif', '.webp', '.jp2'):
if ext not in ('.png', '.jpg', '.jpeg', '.gif', '.webp', '.jp2', '.avif'):
if os.path.exists(os.path.join(root, name)):
os.remove(os.path.join(root, name))
# remove empty nested folders