{"id":13600207,"url":"https://github.com/laixhe/goimg","last_synced_at":"2026-01-12T02:59:39.868Z","repository":{"id":37405759,"uuid":"130347983","full_name":"laixhe/goimg","owner":"laixhe","description":"Golang 轻量级的图片服务器","archived":false,"fork":false,"pushed_at":"2023-05-05T07:24:08.000Z","size":97,"stargazers_count":102,"open_issues_count":1,"forks_count":29,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-07T02:37:10.870Z","etag":null,"topics":["go","golang","image","image-server","server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laixhe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-04-20T10:33:08.000Z","updated_at":"2024-09-16T04:10:52.000Z","dependencies_parsed_at":"2024-01-14T04:43:03.088Z","dependency_job_id":null,"html_url":"https://github.com/laixhe/goimg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laixhe%2Fgoimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laixhe%2Fgoimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laixhe%2Fgoimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laixhe%2Fgoimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laixhe","download_url":"https://codeload.github.com/laixhe/goimg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248301414,"owners_count":21080892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","image","image-server","server"],"created_at":"2024-08-01T18:00:32.059Z","updated_at":"2026-01-12T02:59:39.839Z","avatar_url":"https://github.com/laixhe.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"## Goimg 轻量级的图片服务器\n\n### 简介\n\u003e goImg是一个使用Golang语言编写的图片服务器\n\n\u003e 目前只实现单文件上传\n\n\u003e 支持 jpeg png gif 等图片上传\n\n\u003e 请使用 Go1.18 以上\n\n### 功能特点\n\u003e 文件存储目录采用md5算法生成\n\n\u003e 目前支持 jpeg png 的缩略图，gif 暂不支持\n\n### 安装\n\u003e go get github.com/laixhe/goimg\n\n### 获取图片\n\u003e GET /9d32e3c40efb0b749270695d5f0afdfc\n\n\n### 获取图片 并缩略，宽度=300 高度=100\n\u003e GET /9d32e3c40efb0b749270695d5f0afdfc?w=300\u0026h=100\n\n### 上传图片\n\u003e POST  /\n\n\u003e 表单参数: userfile\n\n\u003e 返回值: json 主要是 imgid\n\n```\n{\n\t\"success\": true,\n\t\"code\": 200,\n\t\"msg\": \"OK\",\n\t\"version\": \"v0.1.1\",\n\t\"data\": {\n\t\t\"size\": 42445,\n\t\t\"mime\": \"jpeg\",\n\t\t\"imgid\": \"9d32e3c40efb0b749270695d5f0afdfc\"\n\t}\n}\n```\n\n### 获取图片信息\n\u003e GET /info?imgid=9d32e3c40efb0b749270695d5f0afdfc\n\n\u003e GET /info?imgid=9d32e3c40efb0b749270695d5f0afdfc\u0026w=300\u0026h=100\n\n\u003e 返回值: json\n\n\u003e 与 上传图片 的返回一致\n\n### 获取状态码\n\u003e GET /statuscode\n\n\u003e 返回值: json","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaixhe%2Fgoimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaixhe%2Fgoimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaixhe%2Fgoimg/lists"}