Round is a command-line for rounding the images.
go get github.com/mingrammer/round
Round an image. (default option: 4 corners with 0.25 rounding rate)
$ round /path/to/image.png
Round multiple images.
$ round /path/to/image.png /path/to/image2.png
$ round *.png
Change the rounding rate. (1.0 means that make an image circular)
$ round -r 0.5 /path/to/image.png
$ round -r 1.0 /path/to/image.png
You can round only specific corners.
# 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)
$ round -p new -s _circle /path/to/square.png
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
MIT