Giter Club home page Giter Club logo

round's Introduction

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)

$ 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

Examples

rect+jpg rect+png square+jpg square+png
original flower.jpg flower.png flower2.jpg flower2.png
half flower_r0.5.jpg flower_r0.5.png flower2_r0.5.jpg flower2_r0.5.png
leaf flower_leaf.jpg flower_leaf.png flower2_leaf.jpg flower2_leaf.png
circle new_flower_ciecle.jpg new_flower_ciecle.png new_flower2_ciecle.jpg new_flower2_ciecle.png
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

round's People

Contributors

mingrammer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

round's Issues

Unable to install library

For updating diagrams, I'm trying to install the dependencies to update the OCI icon library. In order to do so, according to collab guide here: https://github.com/dralquinta/diagrams/blob/master/CONTRIBUTING.md I need to install round depedency.

When trying to do so, according to guide, I get no response from repo:

[opc@dalquintdevhubscl diagrams]$ go get github.com/mingrammer/round

And then when trying to run autogen.sh in diagrams I get:

[opc@dalquintdevhubscl diagrams]$ ./autogen.sh 
round is not installed

My dependency script looks like this:

#!/bin/bash
set -xe

go get github.com/mingrammer/round
sudo pip3 install black
FILE=Inkscape-3bf5ae0-x86_64.AppImage 
if [ ! -f "$FILE" ]; then
    wget --no-check-certificate https://inkscape.org/ko/gallery/item/29256/Inkscape-3bf5ae0-x86_64.AppImage
    chmod u+x ${FILE}
    ln -s ${FILE} inkview
fi

Could you kindly let me know if there is something wrong with the installation process I'm following? I don't see anything evident at this point.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.