Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bunji2/cropper
go implimentation of cropping images
https://github.com/bunji2/cropper
golang image-cropper
Last synced: about 14 hours ago
JSON representation
go implimentation of cropping images
- Host: GitHub
- URL: https://github.com/bunji2/cropper
- Owner: bunji2
- Created: 2021-01-22T10:41:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-17T15:26:46.000Z (over 3 years ago)
- Last Synced: 2023-03-02T00:25:43.702Z (over 1 year ago)
- Topics: golang, image-cropper
- Language: Go
- Homepage:
- Size: 5.52 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cropper
go implimentation of cropping images
## Usage
```
C:\work> cropper.exe
Usage: cropper.exe [ -conf conf.json ] infile_pattern [ out_dir ]
```you can treat wild card in infile_pattern.
```
C:\work> cropper.exe /tmp/*.png out
```If you ommit -conf option, default conf.json file is refered.
Default conf.json file must be located at the same path of cropper.exe.
## Config
[conf.json](conf.json)
```
{
"p1":[29, 310],
"p2":[709, 820],
"out_dir": "out"
}
```cropper crops area of between p1 and p2 from input image file and saves in out_dir.
+ "p1" is the coodinate of top-left point.
+ "p2" is the coodinate of bottom-right point.
+ "out_dir" is default out directory.