An image server toolkit in Go (Golang)
- HTTP server
- Resize (GIFT, nfnt resize, Graphicsmagick)
- Rotate
- Crop
- Convert (JPEG, GIF (animated), PNG , BMP, TIFF, ...)
- Cache (groupcache, Redis, Memcache, in memory)
- Gamma correction
- Fully modular
These demos use the "advanced" example.
Click the images to see the URL parameters.
Options | Result |
---|---|
rotation=90 (counterclockwise) |
|
rotation=45&background=ffaa88 (background) |
Format: min_x,min_y|max_x,max_y
Options | Result |
---|---|
crop=556,111|2156,1711 |
|
crop=956,511|1756,1311 |
|
crop=1252,799|1460,1022 |
Original | Resized |
---|---|
Animated | |
Spaceship |
Gamma correction (more info)
Original | Disabled | Enabled |
---|---|---|
Dalai Gamma | ||
Gray squares | ||
Random | ||
Rings | ||
Rules / sucks |
Resampling | Rings | Large |
---|---|---|
Nearest neighbor | ||
Box | ||
Linear | ||
Cubic | ||
Lanczos |
JPEG quality | Result |
---|---|
5% | |
10% | |
50% |
There is no backward compatibility promises. If you want to use it, vendor it. It's always OK to change things to make things better. The API is not 100% correct in the first commit.