Coder Social home page Coder Social logo

gimg's Introduction

Gimg


Gimg是zimg的golang版本。

完全兼容zimg的文件目录储存格式,支持文件和类Redis协议(SSDB)储存。

环境要求:

  • 操作系统: ubuntu/debian/osx
  • golang版本: >= 1.4
  • ImageMagick版本: = 6.8.5-X

Install


Ubuntu/Debian


wget http://www.magickwand.org/download/releases/ImageMagick-6.8.5-10.tar.gz
tar zxvf ImageMagick-6.8.5-10.tar.gz
cd ImageMagick-6.8.5-10/
./configure
make & make install
ldconfig /usr/local/lib

OSX


brew install ImageMagick

安装


go get github.com/gographics/imagick/imagick
go get code.google.com/p/gcfg
go get github.com/garyburd/redigo/redis
go get github.com/Leon2012/gimg
cd $GOPATH/src/github.com/Leon2012/gimg/build/
go build -o gimg
./gimg --config=./conf/config.ini

演示


http://182.92.189.64:8081/e351d9d8c9f409ec0ff4d518d6f7551f

http://182.92.189.64:8081/e351d9d8c9f409ec0ff4d518d6f7551f?w=100&h=100&x=-1&y=-1

http://182.92.189.64:8081/e351d9d8c9f409ec0ff4d518d6f7551f?w=100&h=100&x=-1&y=-1&r=45

http://182.92.189.64:8081/e351d9d8c9f409ec0ff4d518d6f7551f?w=100&h=100&x=-1&y=-1&g=1

gimg's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.