All Projects → phachon → Gis

phachon / Gis

Licence: mit
gis (go image server) go 实现的图片服务,实现基本的上传,下载,存储,按比例裁剪等功能

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Gis

React Viewer
react image viewer, supports rotation, scale, zoom and so on
Stars: ✭ 502 (+364.81%)
Mutual labels:  image, picture, image-gallery
React Image Magnify
A responsive image zoom component designed for shopping sites.
Stars: ✭ 391 (+262.04%)
Mutual labels:  image, picture
Pyinstastories
Python script to download Instagram stories from Instagram users.
Stars: ✭ 260 (+140.74%)
Mutual labels:  image, picture
Html To Image
✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
Stars: ✭ 595 (+450.93%)
Mutual labels:  image, picture
Quick Picture Viewer
🖼️ Lightweight, versatile desktop image viewer for Windows. The best replacement for the default Windows photo viewer.
Stars: ✭ 237 (+119.44%)
Mutual labels:  image, picture
Img Vuer
An Mobile-First image viewer for Vue2 / 一个移动端优先的 Vue2 图片预览插件
Stars: ✭ 244 (+125.93%)
Mutual labels:  image, image-gallery
Renderhelp
⚡️ 可编程渲染管线实现,帮助初学者学习渲染
Stars: ✭ 494 (+357.41%)
Mutual labels:  image, picture
Weibo image uploader
PHP 实现的微博图床上传轮子
Stars: ✭ 129 (+19.44%)
Mutual labels:  image, picture
Vue Picture Input
Mobile-friendly picture file input Vue.js component with image preview, drag and drop, EXIF orientation, and more
Stars: ✭ 862 (+698.15%)
Mutual labels:  image, picture
Flickrsync
A command line tool to synchronise, upload, download, pictures between the local file system and Flickr. Image hash signature of the picture is used to uniquely identify the image.
Stars: ✭ 14 (-87.04%)
Mutual labels:  image, picture
Color.js
Extract colors from an image (0.75 KB) 🎨
Stars: ✭ 42 (-61.11%)
Mutual labels:  image, picture
Grid
The Guardian’s image management system
Stars: ✭ 1,380 (+1177.78%)
Mutual labels:  image, picture
Medium Zoom
🔎🖼 A JavaScript library for zooming images like Medium
Stars: ✭ 2,799 (+2491.67%)
Mutual labels:  image, picture
Caption generator
A modular library built on top of Keras and TensorFlow to generate a caption in natural language for any input image.
Stars: ✭ 243 (+125%)
Mutual labels:  image-captioning, image
Recent Images
Do you noticed the new feature of Telegram or Instagram?! They show your latest images when you try to attach or post a picture. So I developed this library the same with lots of customization. Simple way to get all images of device based on date taken, name, id and other customization
Stars: ✭ 182 (+68.52%)
Mutual labels:  image, picture
Gopherkon
Go mascot image constructor. Create your cute own gopher.
Stars: ✭ 86 (-20.37%)
Mutual labels:  image, picture
V Viewer
Image viewer component for vue, supports rotation, scale, zoom and so on, based on viewer.js
Stars: ✭ 1,776 (+1544.44%)
Mutual labels:  image, picture
Tysnapshotscroll
一句代码保存截图,将 UIScrollView UITableView UICollectionView UIWebView WKWebView 网页 保存 为 长图 查看。Save the scroll view page as an image,support UIScrollView,UITableView,UICollectionView,UIWebView,WKWebView.(Support iOS13)
Stars: ✭ 709 (+556.48%)
Mutual labels:  image, picture
Picker
Picker - A CameraX based WhatsApp Style Image-Video Picker
Stars: ✭ 69 (-36.11%)
Mutual labels:  image, image-gallery
React Responsive Picture
A future-proof responsive image component that supports latest Picture specification
Stars: ✭ 91 (-15.74%)
Mutual labels:  image, picture
             _
   ____ _   (_)  _____
  / __  /  / /  / ___/
 / /_/ /  / /  (__  )
 \__, /  /_/  /____/
/____/

go image server

go 实现的图片服务, 提供上传, 存储, 自动裁剪, 下载等功能

stable license download_count release

功能

  • http 上传
  • 图片存储
  • 按比例裁剪图片
  • 图片下载浏览

安装

下载最新版本的二进制程序,下载地址:https://github.com/phachon/gis/releases

使用

  • windows
gis.exe
# 指定配置文件启动
gis.exe --conf config.toml
  • linux
./gis
# 指定配置文件启动
./gis --conf config.toml

配置

config.toml

[listen]
# 监听上传 server
upload="127.0.0.1:8087"
# 监听下载 server
download="127.0.0.1:8088"

[upload]
form_field="upload" // 表单提交字段
allow_type = [".jpg", ".jpeg", ".png"] // 允许上传的图片格式
max_size = 2048 // 图片的最大上传大小 KB
root_dir = "upload" // 图片上传根目录
filename_len = 16 // 图片保存文件名字符串长度
dirname_len = 4  // 目录树的目录名长度
thumbnails = ["200_200", "300_300", "200_400"] // 要生成的缩略图裁剪尺寸 width_height

[download]
# 下载的地址 协议://域名:端口
uri = "http://test.com:8088"

[appname] // appname 用于授权,可多个,app_key 需要和 客户端上传的 token 保持一致
    [appname.test]
    app_key = "ad%4a*a&

接口说明

上传图片接口

  • 请求地址:/image/upload?
  • 请求方式:POST
  • 请求 Header: Appname, Token (用来验证上传合法性)
  • 返回格式:json
{
  "code": "1",   // 1:success, 0:error
  "message": "", // error message
  "data": {
       "image": "http://test.com:8088/image/LYEDBYKAFGGRJUFL.png"
       "image_200_200": "http://test.com:8088/image/LYEDBYKAFGGRJUFL_200_200.png"
       "image_200_400": "http://test.com:8088/image/LYEDBYKAFGGRJUFL_200_400.png"
       "image_300_300": "http://test.com:8088/image/LYEDBYKAFGGRJUFL_300_300.png"
   }, // server image url
}

Token 生成规则

token = md5(appname+appKey)

下载图片接口

  • 接口地址:/image/:imageName
  • 请求方式:GET
  • 返回:图片

客户端调用示例

反馈

欢迎提交意见和代码,联系方式 [email protected]

License

MIT

Thanks

Create By [email protected]

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].