Ver Fonte

update minecraft

root há 2 anos atrás
pai
commit
ef6213d023

BIN
minecraft/image/2023-01-10_14.49.34.png


BIN
minecraft/image/2023-01-10_15.49.15.png


BIN
minecraft/img/2023-01-10_14.49.34.png


BIN
minecraft/img/2023-01-10_15.49.15.png


+ 3 - 1
minecraft/index.html

@@ -83,7 +83,9 @@
                 "2021-11-21_15.40.09.png,11.21,合影(你怎么不看镜头!)",
                 "2021-12-26_08.45.29.png,12.26,him 乃廉价劳动力",
                 "2022-01-18_14.05.42.png,2022.1.18,彩虹!(中考前最后一次登录,随后关服)",
-                "2022-12-06_10.23.50.png,2022.12.6,测试新服务器,树场 MSPT<50,好耶!"
+                "2022-12-06_10.23.50.png,2022.12.6,测试新服务器,树场 MSPT<50,好耶!",
+                "2023-01-10_14.49.34.png,2023.1.10,有新同学来了",
+                "2023-01-10_15.49.15.png,,挺好"
             ]
             img.sort()
             console.log(img)

+ 2 - 2
minecraft/minify.py

@@ -3,14 +3,14 @@ import glob
 from PIL import Image
     
 def thumbnail_pic(path):
-    a=glob.glob(r'about/stamp.png')
+    a=glob.glob(r'image/*.png')
     print(a)
     for x in a:
         name=os.path.join(path,x)
         im=Image.open(name)
         im.thumbnail((400,400))
         print(im.format,im.size,im.mode)
-        im.save('about/'+name.split('/')[2])
+        im.save('./img/'+name.split('/')[2])
         print('done!')
     
 if __name__=='__main__':