2.0.1 • Published 3 years ago

tinyimgs v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Intro

This is a cli tool to compress images, powered by https://tinypng.com/.

背景

在日常的前端开发过程中总会遇到这样的场景: 我:UI 小姐姐,把这几张图片给我切一下 UI:好的,稍等。。。好了,微信上发你 我:这几张图片有点大啊 UI:你自己压缩一下吧

然后你会进行一些列操作:

  1. 打开 https://tinypng.com/
  2. 一张一张选中需要压缩的图片
  3. 将压缩后的图片一张一张下载下来保存

现在,有了tinyimgs再也不需要进行以上的操作了,只需要在文件夹的目录中运行

  tinyimgs

  tinyimgs -h

  Usage: tingyImgs [options]

  选项:
    -v, --version  显示版本号                                               [布尔]
    -o, --out      the dir that store compressed imgs  [字符串] [默认值: "output"]
    -h, --help     显示帮助信息                                             [布尔]

  copyright 2021

就可以自动进行压缩了。

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago