A minimal Python script that resizes images to specified dimensions using the Pillow library.
- Resize any image to custom width × height
- Uses high-quality Lanczos resampling for sharp results
- Accepts any format supported by Pillow (JPEG, PNG, BMP, WEBP, etc.)
- Saves the resized image with a
resize-prefix to avoid overwriting
| Category | Technology |
|---|---|
| Language | Python 3 |
| Image Processing | Pillow |
pip install pillow
python "image resizer.py"You'll be prompted to enter:
- The path to the source image
- The target width and height (comma-separated, e.g.
1920,1080)
- Working with the Pillow (PIL) library for image manipulation
Image.Resampling.LANCZOSfor high-quality downscaling- Building simple interactive CLI tools with a loop for repeated use
Made with ❤️ as part of a learning journey