Skip to content

yalay/go-thumbnail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-thumbnail

功能描述

  1. 非失真缩略图压缩,支持jpg、png、gif、webp格式
  2. 缓存机制
  3. 在线http服务

引用公共模块

  1. gin
  2. protobuf
  3. sse
  4. resize
  5. cutter
  6. context
  7. validator
  8. image

编译方法

特别注意:因为解码webp依赖go1.6版本库,因此该项目必须是go1.6以上版本才可以编译。

因为外部模块有部分依赖地址无效,因此修改为有效的依赖地址,并且全部整理在该项目中,该项目代码是完整的,不需要重新下载其他代码,直接可以用的。

export GOPATH=$PWD
git clone https://github.com/yalay/go-thumbnail.git src
cd src
go build

使用方法

http://127.0.0.1:6789/pure/22.jpg?s=100x100

demo演示

  • 原始图片
    原始图片
  • 缩略图
    缩略图

About

go语言编写的简单的非失真本地图片缩略图服务器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published