Gimg是zimg的golang版本。
完全兼容zimg的文件目录储存格式,支持文件和类Redis协议(SSDB)储存。
环境要求:
- 操作系统: ubuntu/debian/osx
- golang版本: >= 1.4
- ImageMagick版本: = 6.8.5-X
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
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/a258607b53444f32208e864f44a06b93
http://182.92.189.64:8081/info?md5=a258607b53444f32208e864f44a06b93
http://182.92.189.64:8081/a258607b53444f32208e864f44a06b93?w=100&h=100&x=-1&y=-1
http://182.92.189.64:8081/a258607b53444f32208e864f44a06b93?r=45
http://182.92.189.64:8081/a258607b53444f32208e864f44a06b93?g=1
http://182.92.189.64:8081/a258607b53444f32208e864f44a06b93?f=png