feat: upload

This commit is contained in:
MarkusJoe
2022-02-04 11:08:34 +08:00
parent e5945e8852
commit 0099b66e8f
20 files changed
+112 -75

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ def convert() -> None:
# image转base64
lst = []
for i in range(10):
with open(f'../../static/number/{i}.png', 'rb') as f:
with open(f'../../static/theme/t2/{i}.svg', 'rb') as f:
base64_data = base64.b64encode(f.read())
base64_code = 'data:image/jpeg;base64,' + base64_data.decode('utf-8')
lst.append(base64_code)