gulp-upng
png min use upng.js
Last updated 3 years ago by dandiao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-upng 
SYNC missed versions from official npm registry.

Minify PNG using UPNG.js

Install

npm install gulp-upng

Example

var gulp = require('gulp');
var upng = require('gulp-upng');

gulp.task('upng', function () {
	gulp.src('src/**/*.png')
		.pipe(upng({cnum:256}))
		.pipe(gulp.dest('compressed_images'));
});

Options

  • cnum: 结果中的颜色数量; 0:所有颜色(无损PNG),默认256
  • showLog: 是否显示单个文件压缩日志

Current Tags

  • 1.0.3                                ...           latest (3 years ago)

4 Versions

  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |