/imageserver

Image server toolkit in Go

Primary LanguageGoMIT LicenseMIT

Image Server

An image server toolkit in Go (Golang)

GoDoc Build Status

Features

  • Http server
  • Resize / convert / process (Graphicsmagick)
  • Cache (Redis, Memcache, in memory)
  • Fully modular

Demo

Normal
http://fuckingfrogs.fr:8080/?source=small.jpg

Normal

Resize animated gif
http://fuckingfrogs.fr:8080/?source=animated.gif&width=300&height=300

Resize animated gif

Resize and crop
http://fuckingfrogs.fr:8080/?source=medium.jpg&width=200&height=200&extent=1&fill=1

Resize and crop

Resize jpeg low quality
http://fuckingfrogs.fr:8080/?source=large.jpg&width=400&format=jpeg&quality=50

Resize jpeg low quality

Resize huge image (5000x5000)
http://fuckingfrogs.fr:8080/?source=huge.jpg&width=300&height=300

Resize huge image (5000x5000)

Examples

TODO

  • more tests
  • don't ignore error from cache
  • add GroupcacheServer
  • add timeout in LimitProcessor