Code Monkey home page Code Monkey logo

img-round's Introduction

๐Ÿ“ธ Image Corner Rounding Script ๐ŸŒ

This is a Python script that allows you to round the corners of an image.

๐Ÿ”ง Installation

Before running the script, make sure to install the necessary Python libraries. You can install these using pip:

pip install pillow

๐Ÿš€ Usage

The script is used from the command line and takes three arguments:

  1. image_path: The path to the input image.
  2. output_path: The path where the rounded image should be saved.
  3. radius: The radius for the rounded corners.

You can use the script like this:

python round_corners.py input.png output.png 50

This will create a new image file called output.png with rounded corners of radius 50 pixels.

๐Ÿ“– Help

For more information on how to use the script, you can ask for help:

python round_corners.py --help

This will print a helpful message explaining how to use the script.

๐Ÿ’ก Note

The script expects the image to be in a format that supports transparency (like PNG). If the image is in a different format (like JPG), the script will still run, but the corners outside the rounded area will be black.

Enjoy your image processing! ๐ŸŽ‰

img-round's People

Watchers

Santi Legaristi avatar

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.