Skip to content

Commit 94d3788

Browse files
committed
Update README.md
1 parent 91085e1 commit 94d3788

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,21 @@ var result = SmartCrop.crop(image, {width: 100, height: 100}, function(result){c
2929
// {topCrop: {x: 300, y: 200, height: 200, width: 200}}
3030
```
3131

32-
# CLI / Node.js
32+
## Download/ Installation
33+
```npm install smartcrop```
34+
or
35+
```bower install smartcrop```
36+
or just download [smartcrop.js](https://raw.githubusercontent.com/jwagner/smartcrop.js/master/smartcrop.js) from the git repo.
37+
38+
## CLI / Node.js
3339
The [smartcrop-cli](https://github.com/jwagner/smartcrop-cli) offers command line interface to smartcrop.js. It is based on node.js and node-canvas. You can also view it as an example on how to use smartcrop.js from a node.js app.
3440

3541
## Module Formats
3642

37-
Smartcrop.js can be used as plain javascript in the browser, amd or commonjs module.
38-
It can be in a node environment using node-canvas. There are no dependencies.
43+
Supported:
44+
* common js
45+
* amd
46+
* global export / window
3947

4048
## Supported Browsers
4149
See [caniuse.com/canvas](http://caniuse.com/canvas)

0 commit comments

Comments
 (0)