This Python application generates multiple duotone variations of an input image. It allows users to select an image file and creates 100 unique duotone versions using randomly generated color pairs.
- User-friendly image selection via a file dialog
- Generates 100 unique duotone variations
- Saves output images with descriptive filenames including color information
- Uses OpenCV for efficient image processing
-
Clone this repository:
git clone https://github.com/MichailSemoglou/duotone-image-generator.git cd duotone-image-generator
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the script:
python3 duotone_generator.py
-
A file dialog will open. Select the image you want to process.
-
The script will generate 100 duotone variations and save them in a new folder named
[original_filename]_duotone_variations
in the same directory as the input image. -
A message box will appear when the process is complete, indicating the location of the output folder.
- OpenCV (cv2)
- NumPy
- Tkinter (usually comes pre-installed with Python)
- Python 3.6 or higher
This project is licensed under the MIT License. See the LICENSE file for details.