HEIC import

This commit is contained in:
2024-01-17 20:04:12 +01:00
parent d97ec091c5
commit e1b464e36c
3 changed files with 92 additions and 34 deletions

View File

@@ -5,6 +5,11 @@ class Images:
pass
def get_images_from_folder(self, URI: str) -> list:
items = os.listdir(URI)
items = []
for file in os.listdir(URI):
if file.endswith("jpg") or file.endswith("jpeg") or file.endswith("png") or file.endswith("bmp"):
items.append(file)
items.sort()
return items