-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link to blog post in README, clean up formatting.
Also document brew install for canvas.
- Loading branch information
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# Inspector Bokeh | ||
|
||
Experimental JavaScript library to measure blur in images. | ||
Experimental JavaScript library to measure blur in images. See this [blog post](http://www.codeoclock.com/2015/06/05/blur-detection-javascript/) for more info. | ||
|
||
## Prerequisites | ||
* [Node.js](https://nodejs.org/) | ||
* [Browserify](http://browserify.org/) | ||
* [Node.js](https://nodejs.org/) | ||
* [Browserify](http://browserify.org/) | ||
|
||
## Run with Node.js | ||
1. Make sure [Cairo](http://cairographics.org/) is installed in your system, the `canvas` module requires this. [How to install node-canvas](https://github.com/Automattic/node-canvas/wiki). | ||
2. `npm install` | ||
3. `node measure_blur.js path/to/image/file.jpg` | ||
1. Make sure [Cairo](http://cairographics.org/) is installed in your system, the [canvas](https://github.com/Automattic/node-canvas) module requires this. [How to install node-canvas](https://github.com/Automattic/node-canvas/wiki). | ||
* On OS X with [Homebrew](http://brew.sh/): `brew install pkg-config cairo pango libpng jpeg giflib` | ||
1. `npm install` | ||
1. `node measure_blur.js path/to/image/file.jpg` | ||
|
||
## Prepare and run browser demo - under construction | ||
1. `npm install` | ||
2. `browserify measure_blur_browserify.js > measure_blur_browser.js` | ||
3. Open `demo.html` in your browser. | ||
1. `browserify measure_blur_browserify.js > measure_blur_browser.js` | ||
1. Open `demo.html` in your browser. |