1.0.3 • Published 6 years ago

check-images v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

check-images

简单的切图自动化工具,用来检测sprite中的图片是否符合规范(高度必须为偶数),防止合成单倍精灵图时position出错, 如遇到不符合规范的图片,则会自动拉伸1像素

Installation

$ npm install check-images

API

var checkImg = require('check-images');
// 你需要检测的图片所在文件夹(里面还可以包含子文件夹)
var filePath = './sprite/tool/src';


checkImg(filePath);
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago