增加更多主题选择并修复了bug

This commit is contained in:
MarkusJoe
2022-02-08 19:46:11 +08:00
parent ef08d44ba6
commit 44514bc519
353 files changed
+1359 -1185

No files matched your search

+30 -6
View File
@@ -1,6 +1,30 @@
#!/usr/bin/env python3
# -- coding:utf-8 --
# @Author: markushammered@gmail.com
# @Development Tool: PyCharm
# @Create Time: 2022/2/8
# @File Name: img_size.py
#!/usr/bin/env python3
# -- coding:utf-8 --
# @Author: markushammered@gmail.com
# @Development Tool: PyCharm
# @Create Time: 2022/2/8
# @File Name: img_size.py
import os
from PIL import Image
import sqlite3
def get_info(path, file):
for i in path:
img = Image.open(f'../assets/themes/{path}/{file}')
imgSize = img.size
w = img.width
h = img.height
f = img.format
print(imgSize)
print(w, h, f)
file_list = os.listdir('../assets/themes/')
for p in file_list:
lst = os.listdir(f'../assets/themes/{p}')
for i in lst:
get_info(p, i)