From 314022dc809c9a39c3af81e9719a3923158aacec Mon Sep 17 00:00:00 2001 From: Timo Taglieber Date: Wed, 4 Jan 2017 20:52:22 +0100 Subject: [PATCH] Link to blog post in README, clean up formatting. Also document brew install for canvas. --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e2e1610..c56754b 100644 --- a/README.md +++ b/README.md @@ -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.