@8columns/tiny-image 中文文档教程
@8columns/tiny-image
一个小型 CLI,可帮助您减小图像文件的大小(支持 jpg、png、gif)。
Installation
$ npm install tiny-image -g
Usage
在保存图像的文件夹中运行此命令
$ tiny-image
默认情况下,优化图像将保存在当前目录的“out”文件夹中。 但是您可以像这样使用 -o 选项指定自己的输出文件夹
$ tiny-image -o <folder-name>
Credits
@8columns/tiny-image
a small CLI to help you reduce file size of images (supports jpg, png, gif).
Installation
$ npm install tiny-image -g
Usage
run this command in folder that your keep your images
$ tiny-image
Optimized images will be kept in "out" folder in the current directory by default. But you can specify your own output folder using -o option like this
$ tiny-image -o <folder-name>