lots of update 2

This commit is contained in:
Qing
2023-01-07 08:52:11 +08:00
parent a22536becc
commit a7240eedb5
13 changed files with 302 additions and 71 deletions

View File

@@ -85,8 +85,9 @@ class FileManager:
names = sorted([it.name for it in glob_img(self.root_directory)])
res = []
for name in names:
img = Image.open(os.path.join(self.root_directory, name))
res.append({"name": name, "height": img.height, "width": img.width})
path = os.path.join(self.root_directory, name)
img = Image.open(path)
res.append({"name": name, "height": img.height, "width": img.width, "ctime": os.path.getctime(path)})
return res
@property