标签:gem oba png res ace class sub gre var
判断是否渐进
npm install --global is-progressive-cli
is-progressive *.jpg
转换为渐进法一
brew install imagemagick
brew install graphicsmagick
npm install gm -g
gm convert 1.jpg -interlace Line 1-line.jpg
转换为渐进法二
npm install gm
``` js
var gm = require(‘gm‘).subClass({imageMagick: true});
gm("img.png").progress()
```
标签:gem oba png res ace class sub gre var
原文地址:https://www.cnblogs.com/daysme/p/10140953.html