项目
在 GitHub 查看
pierrre/imageserver
关于
Go 图像服务器工具包
设计与媒体可以做什么
- Resize (GIFT, nfnt resize, Graphicsmagick)
- Convert (JPEG, GIF (animated), PNG , BMP, TIFF, ...)
- Cache (groupcache, Redis, Memcache, in memory)
- Gamma correction
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- -1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Image Server
An image server toolkit in Go (Golang)
:warning: This repository is not maintained anymore.
Features
- 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
Examples
Demos
These demos use the "advanced" example.
Click the images to see the URL parameters.
Resize
Rotate
| Options | Result |
|---|---|
rotation=90(counterclockwise) |
![]() |
rotation=45&background=ffaa88(background) |
![]() |
Crop
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 |
![]() |
Animated GIF
| Original | Resized |
|---|---|
| Animated | ![]() |
| Spaceship | ![]() |
Gamma correction (more info)
| Original | Disabled | Enabled |
|---|---|---|
| Dalai Gamma | ![]() |
![]() |
| Gray squares | ![]() |
![]() |
| Random | ![]() |
![]() |
| Rings | ![]() |
![]() |
| Rules / sucks | ![]() |
![]() |
Resampling
| Resampling | Rings | Large |
|---|---|---|
| Nearest neighbor | ![]() |
![]() |
| Box | ![]() |
![]() |
| Linear | ![]() |
![]() |
| Cubic | ![]() |
![]() |
| Lanczos | ![]() |
![]() |
Quality
| JPEG quality | Result |
|---|---|
| 5% | ![]() |
| 10% | ![]() |
| 50% | ![]() |
Convert (JPEG to GIF)
Backward compatibility
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.
探索相关项目
加载中…



































