https://github.com/steelydylan/gulp-webloc2png
https://github.com/steelydylan/gulp-webloc2png
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/steelydylan/gulp-webloc2png
- Owner: steelydylan
- Created: 2015-02-21T03:37:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-21T05:36:42.000Z (over 11 years ago)
- Last Synced: 2025-02-09T00:02:14.891Z (over 1 year ago)
- Language: JavaScript
- Size: 555 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)