Skip to content

Image Placeholder Generator Base on GraphicsMagick

Notifications You must be signed in to change notification settings

songxc/image-proc-gm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Placeholder Generator Base on GraphicsMagick

Image Placeholder Tool

Introduction

Dependencies

Demo

Visit after start service.

API

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);

Deploy

Initialize

  1. expressnpm install express --save
  2. express-generatornpm install express-generator -g
  3. yeomannpm install yo -g
  4. yo express

Update

  1. Update Homebrewbrew update
  2. Update Software:brew upgrade
  3. Install wget:brew install wget

Install

  1. GraphicsMagickbrew install graphicsmagick(For Mac)
  2. gmnpm install gm
  3. nodemonnpm install nodemon -g
  4. npm install

Start

nodemon ./bin/www

Reference

Express
ImageMagick v6 Examples -- Blurring and Sharpening Images
ImageMagick开源项目-详细命令解释
Buffers To Base64

About

Image Placeholder Generator Base on GraphicsMagick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published