1.5.0 • Published 2 years ago

compress-pngs v1.5.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

说明

命令行工具,用于将指定目录Dir1下的 png 图片 压缩到指定目录Dir2

下载

npm install compress-pngs -g

配置 tiny-png key

点击官网 https://tinypng.com/

第一步 注册

Image text

第二步 申请 key

Image text

第三步 将 key 添加到项目 config.json 文件下

"tinyKey" : your key here

命令行使用

  1. compress-png --src源地址 --target目标地址都必须是绝对地址
  2. 增加 --local 参数,表示从当前目录下获取源地址,会优先获取src参数; localsrc必须得有一个
  3. target 参数可选,若不传则会在当前文件下面创建一个timestamp_png 目录

注意

1.5.0

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.3.0

2 years ago

1.2.2

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.0

3 years ago