AEAMcNett / ukr

Simple script to apply the colors of the flag of Ukraine to an image.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ukr

usage

  1. Clone this repo wherever you'd like it to run.
git clone https://github.com/AEAMcNett/ukr.git
  1. Create a virtual environment using your favorite method. To do so using the venv module and create a virtual environment within your project directory:
python3 -m venv venv
  1. Activate your virtual environment. If you followed the instructions above using the venv module, execute the following command in your project directory:
source venv/bin/activate
  1. Install the requirements:
pip install -r requirements.txt
  1. Mark the script as executable:
chmod +x ukr.py
  1. Run the script from its directory, supplying the filename (including extension) for the image you want to alter as the sole argument. The image file must be in the script directory.
./ukr.py <filename.jpg>

example

From: A picture of Kamianets-Podilskyi Castle from Wikipedia

To: A picture of Kamianets-Podilskyi Castle altered by this script

About

Simple script to apply the colors of the flag of Ukraine to an image.

License:MIT License


Languages

Language:Python 100.0%