Skip to content

christophercliff/carapace-crop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carapace-crop

Crop for Carapace.

Build Status

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.