ventu-cli
v1.0.1
Published
文件处理命令行工具 (ventu)
Readme
ventu-cli
图像处理命令行工具。当前支持高清抠图。
安装
npm install -g ventu-cli配置
ventu config -s http://ventu.mintree.site -a <激活码>
ventu config # 查看当前配置用法
# 检查配置与连通性
ventu doctor
# 抠图(支持多个文件或目录)
ventu image cutout photo.jpg
ventu image cutout a.jpg b.png ./images/
# 常用选项
ventu image cutout photo.jpg --bg "#ffffff" --jpg
ventu image cutout photo.jpg -o ./out --suffix _cutout
ventu image cutout photo.jpg --size 3000选项
| 选项 | 说明 |
|------|------|
| -s, --server <url> | 服务端地址 |
| -a, --active-code <code> | 激活码 |
| -o, --out <dir> | 输出目录 |
| --size <px> | 上传前限制最长边(0=原图) |
| --bg <color> | 背景色,如 #ffffff(默认透明) |
| --jpg | 输出 JPG |
| --suffix <s> | 输出文件名后缀(默认 _zot) |
| --json | JSON 输出 |
