為什麼要學這個?
如果圖片檔案數量很多, 使用人力一一轉換很花時間.
前置作業
Max腳本檔案下載:
https://github.com/max32002/MaxFontScripts/blob/master/resize_all_image.py
使用方法
python resize_all_image.py --input source_folder --width 1000 --output target_folder
參數說明:
–-input
來源資料夾–-width
新圖片寬度--output
目的資料夾, 預設值是程式執行的現行目錄.
執行的結果範例:
All file count: 1
Image file count: 1
Resize count: 1