Skip to content

Commit

Permalink
Link to blog post in README, clean up formatting.
Browse files Browse the repository at this point in the history
Also document brew install for canvas.
  • Loading branch information
timotgl committed Jan 4, 2017
1 parent 7cb94c0 commit 314022d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
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.

0 comments on commit 314022d

Please sign in to comment.