Your Name 3 年之前
父节点
当前提交
17224d9448
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      process_webp_from_db.py

+ 2 - 2
process_webp_from_db.py

@@ -12,6 +12,6 @@ for c in cursor:
     mobile_h=c['adlogo_mobile'].replace('https://images.hhh.com.tw/','/home/hhh-images/')
     print(mobile_h)
     print(os.path.exists(mobile_h))
-    
-
+    cmd='cwebp '+mobile_h+" -o "+mobile_h+".webp"
+    print(cmd)