Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yanndr/img
Image resize client in go
https://github.com/yanndr/img
cli client go golang image image-processing resize resize-images
Last synced: about 16 hours ago
JSON representation
Image resize client in go
- Host: GitHub
- URL: https://github.com/yanndr/img
- Owner: yanndr
- License: mit
- Created: 2017-08-03T21:41:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T23:40:36.000Z (almost 7 years ago)
- Last Synced: 2024-11-11T21:09:13.080Z (2 months ago)
- Topics: cli, client, go, golang, image, image-processing, resize, resize-images
- Language: Go
- Size: 12.3 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# img
## About
This is a Image CLI written in Go.
My wife needed a simple tool to resize images quickly, so I decided to write it myself :). This is a learning excercise; the goal is to learn how to build a CLI. So far, the client only has one command: Resize. I may add more features later.I used [Cobra](https://github.com/spf13/cobra) for the CLI and [resize lib](https://github.com/nfnt/resize) for the image resize functiom.
## Instalation
```
go get -v github.com/yanndr/img
```## Usage
Usage:
img [flags]
img [command]Available Commands:
help Help about any command
resize Resize the images to a percentage or a value.
version Print the version number of imgFlags:
-h, --help help for imgUse "img [command] --help" for more information about a command.
### resize usage
img resize [files ...] [flags]Flags:
-f, --format string Force the format of the output: png or jpg. if empty it will keep the input image format.
-h, --help help for resize
-o, --out string Output directory for the images defautl: out. (default "out")
-s, --size int Size in % of the original image. (default 50)