Visit after start service.
- Presentation:http://127.0.0.1:3000/demo/blur/index.html
- Generator:http://127.0.0.1:3000/demo/blur/tool.html
url: http://127.0.0.1:3000/blur
params:
{String} callback: callback function name. default: empty;
{String} src: input image url;
{Integer} size: output image size. default: 30, maximum: 100;
{Float} sigma: standard deviation, bigger leads to more blurry. default: 0.1, maximum: 7;
result:
{Boolean} success: status;
{String} message: status message;
{String} errMessage: error message;
{String} src: input image url;
{String} size: output image size;
{String} sigma: standard deviation;
{String} imgDataURL: output image data url(Base64);
- express:
npm install express --save
- express-generator:
npm install express-generator -g
- yeoman:
npm install yo -g
yo express
- Update Homebrew:
brew update
- Update Software:
brew upgrade
- Install wget:
brew install wget
- GraphicsMagick:
brew install graphicsmagick
(For Mac) - gm:
npm install gm
- nodemon:
npm install nodemon -g
npm install
nodemon ./bin/www
Express
ImageMagick v6 Examples -- Blurring and Sharpening Images
ImageMagick开源项目-详细命令解释
Buffers To Base64