Giter VIP home page Giter VIP logo

overlay's Introduction

overlay

PoC python, PIL based CLI to quickly overlay one image to a set of other images

Installation

I didn't feel like putting this up on PyPi so you'll have to install from here. There are other ways to do this but I think this is the most robust way.

  • If you haven't already, install pipx system wide
pip install pipx
  • Clone the repo
git clone https://github.com/Mattwmaster58/overlay.git
  • Install with pipx
pipx install -e ./overlay
  • -e install in development mode, so anytime you may need to pull an upgrade from this repo, a simple git pull should update the app
  • You may be prompted by pipx to add its paths to your PATH variable, you will need to do this to ensure overlay is available system wide.

Usage

Usage: overlay [OPTIONS]

Options:
  -p, --position [top-left|top|top-right|right|bottom-right|bottom|bottom-left|left|center]
  -h, --relative-height FLOAT RANGE
                                  width as a decimal relative to the base
                                  image's width  [0.01<=x<=1]
  -w, --relative-width FLOAT RANGE
                                  width as a decimal relative to the base
                                  image's height  [0.01<=x<=1]
  -i, --input DIRECTORY           folder to scan for images to overlay. If
                                  unspecified, defaults to current working
                                  directory
  -o, --overlay FILE              specifies the image to overlay on the base
                                  images. If unspecified, the input folder
                                  will be scanned for a supported image format
                                  with the name "overlay"
  --in-place                      perform the overlay in place
  -v, --verbose                   enables debug logging
  --help                          Show this message and exit.

Demo

All positions of overlay image demonstrated below

demo image

overlay's People

Contributors

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