@app-proto/tinify-cli
images(Png/Jpg) compression using the tinify API
Last updated 7 months ago by juyipeng .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @app-proto/tinify-cli 
SYNC missed versions from official npm registry.

@app-proto/tinify-cli

tinypng.com.png\.jpg压缩的效果是极其显著的, 这里提供命令行工具批量对某个目录下.png\.jpg后缀图片做tinify压缩。

Usage

# Install
yarn global add @app-proto/tinify-cli

tinify  # tinify 当前目录下所有`.png\.jpg`后缀图片
tinify --key 'YOU API KEY'  # 内置`API KEY`有使用次数限制,建议 tinypng.com/developers 申请自己的
tinify --suffix 'min' # 比如针对文件`logo.png`会生成`logo.min.png`(默认会覆盖原文件)
tinify --curl # 采用`curl --user api:YOUR_API_KEY --data-binary @filename -i https://api.tinify.com/shrink`方式进行tinify操作

Current Tags

  • 0.0.2                                ...           latest (7 months ago)

2 Versions

  • 0.0.2                                ...           7 months ago
  • 0.0.1                                ...           7 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |