https://github.com/mingrammer/round
:cyclone: A command-line for rounding the images
https://github.com/mingrammer/round
cli image round rounding
Last synced: 3 months ago
JSON representation
:cyclone: A command-line for rounding the images
- Host: GitHub
- URL: https://github.com/mingrammer/round
- Owner: mingrammer
- License: mit
- Created: 2019-11-28T01:14:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-10T07:35:47.000Z (over 3 years ago)
- Last Synced: 2025-05-31T19:30:26.949Z (about 1 year ago)
- Topics: cli, image, round, rounding
- Language: Go
- Size: 6.12 MB
- Stars: 58
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Round
Round is a command-line for rounding the images.
## Installation
```
go get github.com/mingrammer/round
```
## Usage
Round an image. (default option: **4** corners with **0.25** rounding rate)
```shell
$ round /path/to/image.png
```
Round multiple images.
```shell
$ round /path/to/image.png /path/to/image2.png
$ round *.png
```
Change the rounding rate. (1.0 means that make an image circular)
```shell
$ round -r 0.5 /path/to/image.png
$ round -r 1.0 /path/to/image.png
```
You can round only specific corners.
```shell
# tl (top left), tr (top right), bl (bottom left), br (bottom right)
$ round -c tl,br /path/to/image.png
```
Add prefix or suffix to output files. (default suffix: **_rounded**)
```shell
$ round -p new -s _circle /path/to/square.png
```
## Examples
| | rect+jpg | rect+png | square+jpg | square+png |
| -------- | -------------------------------------------------------- | -------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
| original |  |  |  |  |
| half |  |  |  |  |
| leaf |  |  |  |  |
| circle |  |  |  |  |
| | original | half | leaf | circle |
| ------- | ---------- | -------- | --------------------------- | --------------------------- |
| options | no options | `-r 0.5` | `-r 0.75 -c tl,br -s _leaf` | `-r 1.0 -p new_ -s _circle` |
Photo by Alex Blăjan on Unsplash
## License
MIT