A command line script that overlays descriptive text on each supplied PNG image and then creates an MP4 movie for easy viewing, displaying each image for 3 seconds.
- Command line script that processes a supplied folder full of PNGs.
- VENV based workflow.
- Minimal required files to install (Python, Git, and FFmpeg are prerequisites).
- Descriptive overlay placed on each PNG based on supplied descriptions.
- MP4 creation of all processed images, showing each for 3 seconds.
Ensure the required dependencies are met:
- Python - 3.10.6 or later.
- FFmpeg binaries with the System Path set to the Bin folder - 6.1.1 recommended.
- Git and pip installed.
To run:
- Place images in the
Input-imagesfolder. - Replace or edit the
descriptions.txtfile and save. - Ensure the number of images matches the number of descriptions.
- Verify that your PNGs are in numerical or alphabetical order to match the order in the
descriptions.txtfile. - Open a command prompt at the main folder location.
- Activate the venv:
.\venv\Scripts\activate. - Run
overlay_text.py:python overlay_text.py. - Overlayed PNGs will be in
Outputs\Output_images. - MP4 will be in
Outputs\Output_MP4. - Planned feature: One-click BAT file execution for simpler workflow.
- Install Python 3.10.6 or newer, ensuring you check "Add Python to PATH".
- Install Git on your system if it's not already installed.
- Install pip if it's not already installed.
- Clone the project repository:
git clone https://github.com/mbloflin/Description-Image-overlay.git. - Navigate to the project directory in your terminal.
- Set up a Python virtual environment in the project directory (if not already done during initial setup):
python -m venv .venv. - Activate the virtual environment:
.\venv\Scripts\activate. - Install the project's dependencies:
pip install -r requirements.txt.
This README is currently the only documentation provided.
- Original idea and pseudocode by Brad Loflin.
- Python code finalized and debugged in Visual Studio Code, version 1.87.0 by Microsoft Inc.
- Python code co-pilot was ChatGPT