Browse Source

fix: HTML转图片配置

hsun 1 year ago
parent
commit
63c194e66a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      html2img/main.py

+ 2 - 1
html2img/main.py

@@ -16,7 +16,8 @@ host = '127.0.0.1'
 debug = True
 
 # 工具配置
-tool_path = r'E:\wkhtmltopdf\bin\wkhtmltoimage.exe'
+tool_path = r'/usr/local/bin/wkhtmltoimage'
+# tool_path = r'E:\wkhtmltopdf\bin\wkhtmltoimage.exe'
 
 # OSS配置
 oss_end_point = 'oss-cn-shanghai.aliyuncs.com'