Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions STTinyPNG-Python.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import os.path

tinify.key = "your AppKey" # AppKey
fromFilePath = "/Users/tangjr/Desktop/test1" # 源路径
toFilePath = "/Users/tangjr/Desktop/test2" # 输出路径
fromFilePath = "/Users/tangjr/Desktop/test1" # sourcePath
toFilePath = "/Users/tangjr/Desktop/test2" # targetPath

for root, dirs, files in os.walk(fromFilePath):
for name in files:
Expand Down