svg 转 emf
- 安装
inkscape
sudo apt install inkscape
- 执行脚本
SVG_DIR="./predictions" # 你的 SVG 文件目录
find "$SVG_DIR" -type f -name "*.svg" | while read f; doinkscape "$f" --batch-process --export-filename="${f%.svg}.emf"
done
- 添加脚本权限并运行
chmod u+x svg_to_emf.sh
./svg_to_emf.sh