Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tk103331/imager
image tool in go
https://github.com/tk103331/imager
Last synced: 8 days ago
JSON representation
image tool in go
- Host: GitHub
- URL: https://github.com/tk103331/imager
- Owner: tk103331
- License: mit
- Created: 2019-03-15T15:05:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-23T03:46:23.000Z (over 3 years ago)
- Last Synced: 2023-07-27T22:43:36.610Z (over 1 year ago)
- Language: Go
- Size: 417 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imager
![](https://travis-ci.org/tk103331/imager.svg?branch=master)
![](https://goreportcard.com/badge/github.com/tk103331/imager)
![](https://godoc.org/github.com/tk103331/imager?status.svg)image tool in go
---
###Summary
The *imager* is a simple image tool lib, For learning only.
### Usage
``` go
// import
import github.com/tk103331/imager
// single operation
imager.New(image.Image).Blur(2)
imager.New(image.Image).Scale(2)
// chain operation
imager.New(image.Image)
.Rotate(0.2)
.Scale(2)
.Round(20)
```### API
#### Circle(mode CircleMode)
#### Crop(rect image.Rectangle)
#### Flip(mode FlipMode)
#### Scale(scale float64)
#### Round(radius int)
#### Blur(level int)
#### Sharp()
#### Rotate(radian float64)
### GUI Demo
![](./imager.jpg)