This script allows you to resize an input image to multiple sizes and save the resized images in an output folder. It uses the Python Imaging Library (PIL) to perform resizing and the click library for command line interface.
- Resize input image to specified sizes
- Save resized images in an output folder
- Command line interface for easy usage
- Install Python (if not already installed)
- Install PIL and click library:
pip install click Pillow
- Download the script from the GitHub repository: Image Resizer GitHub Repo
- Default sizes for resizing are [16, 32, 48, 128]
Example 1: python main.py -o "c:/Users/YourUserName/Downloads/example.jpg"
Example 2: python main.py "c:/Users/YourUserName/Downloads/example.jpg" -s 64,128,256
Example 3: python main.py "c:/Users/YourUserName/Downloads/example.jpg" -s 64,128,256 -o "c:/Users/YourUserName/Downloads/example.jpg"
run the following in your command line:
ImageResizer.exe "Path/to/image.png" -o "Downloads" -s 10,20,30
If you encounter any issues or have suggestions, please open an issue.