All Projects → laixhe → goimg

laixhe / goimg

Licence: other
Golang 轻量级的图片服务器

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to goimg

docker-imgproxy
🌐 An ultra fast, production-grade on-the-fly image processing web server. Designed for high throughput with Nginx caching. Powered by imgproxy.
Stars: ✭ 45 (-48.28%)
Mutual labels:  image-server
ImageWebServer
A simple image uploader website for use with screenshot applications such as ShareX.
Stars: ✭ 20 (-77.01%)
Mutual labels:  image-server
qis
Dynamic image server for web and print
Stars: ✭ 85 (-2.3%)
Mutual labels:  image-server
digilib
A versatile image viewing environment for the internet.
Stars: ✭ 17 (-80.46%)
Mutual labels:  image-server
Imageflow
High-performance image manipulation for web servers. Includes imageflow_server, imageflow_tool, and libimageflow
Stars: ✭ 3,643 (+4087.36%)
Mutual labels:  image-server
rais-image-server
RAIS: A IIIF-compliant, 100% open source image server for blazing-fast deep zooming
Stars: ✭ 72 (-17.24%)
Mutual labels:  image-server
gallery-server
Beautiful and powerful yet simple local image viewer on your PC or mobile.
Stars: ✭ 16 (-81.61%)
Mutual labels:  image-server

Goimg 轻量级的图片服务器

简介

goImg是一个使用Golang语言编写的图片服务器

目前只实现单文件上传

支持 jpeg png gif 等图片上传

请使用 Go1.10 以上

功能特点

文件存储目录采用md5算法生成

目前支持 jpeg png 的缩略图,gif 暂不支持

安装

go get github.com/laixhe/goimg

获取图片

GET /9d32e3c40efb0b749270695d5f0afdfc

获取图片 并缩略,宽度=300 高度=100

GET /9d32e3c40efb0b749270695d5f0afdfc?w=300&h=100

上传图片

POST /

表单参数: userfile

返回值: json 主要是 imgid

{
	"success": true,
	"code": 200,
	"msg": "OK",
	"version": "v0.1.1",
	"data": {
		"size": 42445,
		"mime": "jpeg",
		"imgid": "9d32e3c40efb0b749270695d5f0afdfc"
	}
}

获取图片信息

GET /info?imgid=9d32e3c40efb0b749270695d5f0afdfc

GET /info?imgid=9d32e3c40efb0b749270695d5f0afdfc&w=300&h=100

返回值: json

与 上传图片 的返回一致

获取状态码

GET /statuscode

返回值: json

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].