HEIC import
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user