A simple drag-and-drop image processor built using wxPython and Pillow. It allows you to resize images and remove metadata while specifying JPEG quality through a simple GUI.
- Drag-and-drop image files to process them.
- Optionally resize images to specified dimensions.
- Remove image metadata by converting to RGB.
- Adjust JPEG quality using a slider.
- Process multiple images at once.
- Python 3.x
- wxPython
- Pillow
-
Clone the repository:
git clone https://github.com/samto6/image-processor.git cd image-processor -
Install the dependencies:
pip install wxPython Pillow
-
Run the application:
python image_processor.py
-
Drag and drop image files onto the window to process them.
-
Adjust the following options:
- JPEG Quality: Use the slider to specify JPEG quality (0-100).
- Resize Image?: Check this box to enable resizing.
- Resize Width: Enter the desired width.
- Resize Height: Enter the desired height.
-
Click "OK" on the success message box when processing is complete.
on_resize_check: Shows or hides the resize options based on the checkbox state.on_close_window: Closes the application window.
OnDropFiles: Handles dropped files and processes each image:- Converts to RGB to remove metadata.
- Optionally resizes images.
- Saves images with a specified JPEG quality.
This project is licensed under the MIT License - see the LICENSE file for details.