https://github.com/iamdyeus/darktolight
Light Mode Magic for Dark Code Snippets π
https://github.com/iamdyeus/darktolight
code-snippets devtool inverse pil pillow python white-mode
Last synced: 3 months ago
JSON representation
Light Mode Magic for Dark Code Snippets π
- Host: GitHub
- URL: https://github.com/iamdyeus/darktolight
- Owner: iamDyeus
- License: mit
- Created: 2025-03-06T14:09:07.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-06T14:34:44.000Z (3 months ago)
- Last Synced: 2025-03-06T15:33:01.363Z (3 months ago)
- Topics: code-snippets, devtool, inverse, pil, pillow, python, white-mode
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# DarkToLight
### Light Mode Magic for Dark Code Shots.
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.

## Project Structure
```
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
```## Features
- 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.## Requirements
- Python 3.x
- Pillow (PIL) library## Prerequisites
- Python 3.8 or higher
- A virtual environment (recommended)## Setup
- Clone the Repository
```bash
git clone https://github.com/iamDyeus/DarkToLight.git
cd DarkToLight
```- Create and Activate a Virtual Environment
```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
```## Install Dependencies
- Install the required packages:
```bash
pip install -r requirements.txt
```(Note: Adjust dependencies based on your implementation.)
## Usage
To run the script, use the following command:
```bash
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.
## Example
#### Single Image Conversion:
```bash
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.
#### Batch Image Conversion:
```bash
python dark-to-light.py your_directory
```This command will convert all the images in the specified directory to light mode.
## License
This project is licensed under the MIT License.