carapace-crop
v0.0.1
Published
Crop for Carapace
Downloads
2
Readme
carapace-crop
Crop for Carapace.
Usage
var Carapace = require('carapace')
var Crop = require('carapace-crop')
Carapace
.create(imageEl)
.run([
Crop.create({ width: 100, height: 100, left: 100, top: 100 })
], function(err, canvas){
canvas // [object HTMLCanvasElement 100x100]
})
Installation
$ npm install carapace-crop
Tests
$ grunt test
$ grunt test:server
$ grunt test:browser
License
MIT License, see LICENSE for details.