Coder Social home page Coder Social logo

chongyangma / python-scripts Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.58 MB

Some useful python scripts

License: The Unlicense

Python 1.30% Jupyter Notebook 98.70%
python-script resize-images list-files batch-processing fill-background pil reverse-sequence

python-scripts's Introduction

Python Scripts

Build Status

Some useful python scripts (mostly for batch processing of files). Launching each script without any argument will print out the usage information.

Descriptions

Reverse the order of a file sequence in an input folder and save the renamed file sequence into an output folder.

usage: reverse_sequence.py [-h] [--pattern PATTERN] input_path output_path

Resize images in a folder. Python Imaging Library (PIL) is required.

usage: resize_images.py [-h] [--wd WD] [--ht HT] input_path output_path

Draw text on images in a folder. Python Imaging Library (PIL) is required.

usage: draw_text.py [-h] [--text TEXT] [--font_size FONT_SIZE] [--pos_x POS_X]
                    [--pos_y POS_Y] [--color_r COLOR_R] [--color_g COLOR_G]
                    [--color_b COLOR_B]
                    input_path output_path

List files in a folder.

usage: list_files.py [-h] [--output_file OUTPUT_FILE] [--pattern PATTERN]
                     input_path

Fill the background of images of RGBA format in a folder with a certain color. Python Imaging Library (PIL) is required.

usage: fill_background.py [-h] [--color_r COLOR_R] [--color_g COLOR_G]
                          [--color_b COLOR_B] [--wd WD] [--ht HT]
                          input_path output_path

python-scripts's People

Contributors

chongyangma avatar

Watchers

 avatar  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.