DarkToLight is a Python tool that transforms dark mode code screenshots into clean, light mode versions by inverting their colors. Say goodbye to straining your eyes or mismatched themesβconvert your dark code outputs to bright, readable visuals with ease.
DarkToLight/
βββ src/ # Source code for the project
β βββ dark-to-light.py
β
βββ .gitignore # Git ignore file for unnecessary files
βββ README.md # Project documentation (you're here!)
βββ requirements.txt # Project dependencies
- Converts dark mode code screenshots to light mode.
- Simple and fast image processing.
- Perfect for developers, presenters, or anyone tired of dark mode visuals.
- Perfect when you need to print output snippets.
- Python 3.x
- Pillow (PIL) library
- Python 3.8 or higher
- A virtual environment (recommended)
- Clone the Repository
git clone https://github.com/iamDyeus/DarkToLight.git
cd DarkToLight
- Create and Activate a Virtual Environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install the required packages:
pip install -r requirements.txt
(Note: Adjust dependencies based on your implementation.)
To run the script, use the following command:
python dark-to-light.py input_image_path output_image_path
Replace input_image_path
with the path to the dark image you want to convert and output_image_path
with the path where you want to save the converted image.
python dark-to-light.py images/dark_image.jpg images/light_image.jpg
This command will take dark_image.jpg
from the images
directory and save the converted light image as light_image.jpg
in the same directory.
python dark-to-light.py your_directory
This command will convert all the images in the specified directory to light mode.
This project is licensed under the MIT License.