Code Monkey home page Code Monkey logo

img-cli-tools's Introduction

img-cli-tools

I've developed this handy toolbox for GoodWords, because I had to do some works with images, that could be boring if I had to do it manually.

Available tools

Add background color to image(s):

python add_background.py <complement|triadic|tetradic|analogous> <directory_path> [margin] [bg_color]

Syntax:

  • <complement|triadic|tetradic|analogous> - Required: Choose a color scheme to generate a background color.
  • <directory_path> - Required: The path to the directory containing the images to add a background to.
  • [margin] - Required: The margin (in pixels) between the image and the background.
  • [bg_color] - Optional: The background color to use (in hex format). If not provided, a random color will be generated.

Blur image(s)

python blur_images.py <input_dir> <output_dir> [--blur-radius <blur_radius> --append-to-filename <append_to_filename>]

Syntax:

  • <input_dir> - Required: The path to the directory containing the images to blur.
  • <output_dir> - Required: The path to the directory where the blurred images will be saved.
  • --blur-radius <blur_radius> - Optional: The radius of the Gaussian blur filter to apply (in pixels).
  • --append-to-filename <append_to_filename> - Optional: A string to append to the filename of the blurred image.

Compress Image

python compress_image.py <image_path>

Syntax:

  • <image_path> - Required: The path to the image file to compress using the TinyPNG API.

API:

Get your TinyPNG API Key here.

img-cli-tools's People

Contributors

srejonkhan avatar

Watchers

 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.