Your image, your format, your size!
imgconvert is a lightweight, blazing-fast CLI tool that lets you convert, shrink, enlarge, and change images into new formats – all with a single command.
Whether JPG to PNG, PNG to WEBP, or even an entire folder – imgconvert does it in seconds.
| File / Feature | Status |
|---|---|
imgconvert.py |
|
gui.py |
- 🔄 Change format – JPG → PNG, PNG → WEBP, BMP → JPG … whatever you want.
- 📏 Resize images – by percentage or directly to fixed width/height.
- 📂 Batch mode – convert a whole folder of images in one go.
- 🛠 Simple & fast – just a few arguments and you’re good to go.
- 💡 No Photoshop required – CLI is more than enough.
- Clone the repository
git clone https://github.com/Trigger-45/imgconvert.git cd imgconvert - Install dependencies
pip install -r requirements.txt
- Pillow
- PySide6
-
Create EXE with PyInstaller
- Open CMD or PowerShell.
- Navigate to your project folder:
cd C:\path\to\imgconvert
- Create the executable
pyinstaller --onefile imgconvert.py
- --onefile → everything in one file
- The EXE will be created in dist\imgconvert.exe.
-
Add folder to PATH
- Press Win + S, type Environment Variables and open “Edit the system environment variables”.
- Click “Environment Variables…” at the bottom.
- Find Path in System variables → Edit.
- Click New → add C:\path\to\dist → close with OK.
- Restart CMD/PowerShell to apply changes.
-
Run EXE from anywhere
- Now you can use the tool from any directory
- The EXE is globally available, no Python required
-
Create EXE with PyInstaller
- Open the terminal.
- Navigate to your project folder:
cd /path/to/imgconvert- Create the executable:
pyinstaller --onefile imgconvert.py
- The EXE will be created in dist/imgconvert.
-
Make it executable
chmod +x dist/imgconvert- This makes the file executable
-
Add folder to PATH
- To run it from anywhere, just add the dist/ folder to your PATH:
echo 'export PATH="/path/to/imgconvert/dist:$PATH"' >> ~/.bashrc source ~/.bashrc
- Replace /path/to/imgconvert with the absolute path to your project.
-
Run EXE from anywhere
- Now you can use the tool from any directory
- The EXE is globally available, no Python required
-
Convert a single image
python imgconvert.py -i image.png jpg
➡ image.png → output/image.jpg
-
Resize by percentage
python imgconvert.py -i image.png jpg -rf 0.5
➡ image.png → output/image.jpg at 50% size
-
Resize to fixed values
python imgconvert.py -i image.png jpg -rt 800 600
➡ image.png → output/image.jpg at 800x600
-
Convert an entire folder
python imgconvert.py png -d /path/to/folder
-
Convert images with GUI
python imgconvert.py
NOTE: If the tool is set up (Path added), you only need to replace
python imgconvert.pywithimgconvert. The arguments remain the same.
| Input | Output | Action |
|---|---|---|
-i holiday.jpg png |
holiday.png |
JPG → PNG |
-i image.png webp -rf 0.25 |
image.webp |
75% smaller |
png -d ./photos |
All PNGs in output | Batch folder |
- User-friendly GUI version for click-based usage
- Improve transparency handling
- Optionally preserve Exif data
- Support more formats (TIFF, ICO, etc.)
- Full-featured CLI version with extended options
- Write tests for different image formats
- Improve error handling (invalid inputs, broken files)
- Add logging (optional with
--verbose) - Performance benchmarking on large folders
- Further develop GUI and release first beta
- Add image preview in folder view (GUI with QScrollArea)
This project is licensed under the MIT License.
