A Python-based image processing project built with NumPy and Pillow (PIL). This project manipulates image pixel data to apply basic image transformations and effects.
I'm building this project to improve my Python skills and understand how images can be processed using numerical operations.
- Grayscale Conversion — Converts a color image into grayscale using weighted RGB values.
- Brightness Adjustment — Increases image brightness by modifying pixel values.
- Color Inversion — Inverts RGB values to create a negative effect.
- Horizontal Flip — Flips an image horizontally using NumPy array operations.
- Python
- NumPy
- Pillow (PIL)
1. Clone the repository
git clone https://github.com/blackguy-dev-git/image-manipulator.git2. Navigate to the project directory
cd image-manipulator3. Install the required libraries
pip install numpy Pillow-
Place your image in the appropriate location expected by the program.
-
Run the Python script:
python main.py
-
Select an available image manipulation operation.
-
View the processed image.
Note: Update these instructions if the image path or program workflow changes.
image-manipulator/
├── main.py
├── README.md
└── your-image-file
The image filename above is an example. Your actual repository may contain additional files.
- Practice Python functions and control flow.
- Understand image representation through RGB pixel values.
- Learn NumPy arrays and array manipulation.
- Explore basic digital image processing.
- Build a foundation for more advanced numerical and computer vision projects.
- Add a graphical user interface (GUI).
- Allow users to select images from their computer.
- Make brightness adjustment customizable.
- Add more image filters and transformations.
- Improve error handling and input validation.
- Add before-and-after image previews.
Moiz
GitHub: @blackguy-dev-git
Built as part of my journey to improve my Python, NumPy, and image-processing skills.