image-compression

0.0.6 • Public • Published

image-compression

compression local images

一个本地压缩图片的工具

依赖node包gm,需要本地安装GraphicsMagick

Getting Started

you may install this plugin with this command:

npm install image-commpression

本地安装好node,然后安装GraphicsMagick,然后用npm安装gm到本项目,执行以下命令就可以压缩本地图片了:

node app.js 需要压缩的图片目录 输出压缩结果的目录
 
node app.js e:/photos e:/photos_out

命令行需要带两个参数: 需要压缩的图片目录 、输出压缩结果的目录。

也可以只带一个参数,压缩后的图片会覆盖到当前目录。

Readme

Keywords

Package Sidebar

Install

npm i image-compression

Weekly Downloads

50

Version

0.0.6

License

ISC

Last publish

Collaborators

  • derrickliu