img-tiny
v2.0.7
Published
图片压缩 ## 使用 1. 安装 ``` npm i img-tiny -g ``` 2. 查看版本 ``` tiny --version // or tiny -v ``` 3. 压缩目录下所有图片【支持jpg|jpeg|png格式】 ``` tiny ``` 4. 压缩目录下指定图片 ``` tiny --imgs a.png // 简写 tiny -i a.png ```
Downloads
10
Readme
介绍
图片压缩
使用
- 安装
npm i img-tiny -g
- 查看版本
tiny --version
// or
tiny -v
- 压缩目录下所有图片【支持jpg|jpeg|png格式】
tiny
- 压缩目录下指定图片
tiny --imgs a.png
// 简写
tiny -i a.png
TODO & DONE
- 校验图片 ✔
- 压缩指定图片、压缩所有图片 ✔
- 用户主动输入key ✔
- 图片覆盖 or 生成文件夹存放压缩图片
- 上传进度显示 ✔
- 原始大小、压缩大小显示✔