A simple GUI-based image converter built with Python, Tkinter, and Pillow (PIL). This tool allows users to select an image and convert it into another format (PNG, JPEG, GIF, TIFF, WEBP) with just a few clicks.
- ✅ User-friendly GUI (built with Tkinter)
- ✅ Supports multiple input formats:
.png,.jpg,.jpeg,.gif,.tiff,.webp - ✅ Convert to PNG, JPEG, GIF, TIFF, WEBP
- ✅ Automatically handles images with transparency when converting to formats that don’t support it (e.g., JPEG)
- ✅ Error handling with helpful dialogs
Make sure you have the following installed:
- Python 3.8+
- Tkinter (comes pre-installed with Python)
- Pillow (
PIL)
Install dependencies:
pip install pillow-
Clone or download this repository.
-
Save the script as
image_converter.py. -
Run:
python image_converter.py
- Launch the app → window opens.
- Select the output format you want (PNG, JPEG, GIF, TIFF, WEBP).
- Click "Select Image and Convert".
- Choose an image file from your computer.
- The converted image will be saved in the same folder as the original file, with the new extension.
- Input file:
example.png - Convert to: JPEG
- Output file:
example.jpeg
- JPEG and WEBP don’t support transparency. The app will automatically convert images with alpha channels (RGBA, LA, P) to RGB.
- The converted file replaces only the extension (does not overwrite original).
MIT License – free to use, modify, and distribute.