tinify-pic
v1.0.6
Published
压缩图片工具, 支持png和jpg格式
Downloads
10
Readme
简介
Tinfy img is a library that allows for batch compression of images, with a low-level connection to tinypng.com. Therefore, it is necessary tohttps://tinypng.com Register and obtain the key
1)It can compress individual images
2)It can perform batch compression on all images in the folder
3)It will not compress compressed images again
Installation
Install tinify-pic using npm: npm install -g tinify-pic
Examples
how to get the key?
Go to tinypng.com
Register users for free
On the account page
Find the Available API keys in the API module
// Setting the key when you use it first time
tinify-pic --key="YOUR TINIFY KEY"
compress images
// Using the following command to
tinify-pic --path="file path(directory)"
Updates
| Versions | Description | | ---- | ---- | | 1.0.5 | Add the log | | 1.0.6 | Developers can configure their own keys |