An open API service indexing awesome lists of open source software.

https://github.com/steelydylan/gulp-webloc2png


https://github.com/steelydylan/gulp-webloc2png

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

gulp-webloc2png
=======
A gulp plugin convert html pages to png files

dependency
------
- webkit2png

```
brew install webkit2png
```

Usage
-------

```javascript
var gulp = require('gulp');
var webloc2png = require('gulp-webloc2png');
var watch = require('gulp-watch');
gulp.task("webloc2png",function(){
gulp.src(['urls/*.webloc'])
.pipe(webloc2png({
browserWidth:1280,
browserHeight:720,
clipWidth:1280,
clipHeight:720,
scale:1,
dir:"screenShot"
}))
});
gulp.task("default",function(){
watch("urls/*.webloc",function(){
gulp.start("webloc2png");
});
});
```

LICENSE
-------

(MIT License)

Copyright (c) 2014 [horicdesign](http://horicdesign.com)