使用外指指令 potrace 轉換 bmp 格式為 svg 格式
前置作業
使用前,需要先安裝 potrace:
https://potrace.sourceforge.net/#downloading
Max腳本檔案下載:
https://github.com/max32002/MaxFontScripts/blob/master/bmp_to_svg.py
使用方法
bmp_to_svg.py --input from_folder --output to_folder
參數說明:
--input
: 存放 .bmp 的目錄, 支援格式: bmp, pbm, pgm, ppm--output
: 要輸出的修改後 svg 目錄--single_thread
: 使用單一個 thread, 一次處理一個檔案. 預設值不使用 single thread, 是 multi thread.--cwd
: 切換執行 shell command 的工作目錄(work directory).