Skip to content

FS1512/python-image-resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Batch Image Resizer Tool (Python/Pillow)

This is a command-line utility built in Python to automate the batch resizing of images within a specified folder. It uses the highly optimized Pillow (PIL) library for robust image processing.

This tool is designed to save time by processing multiple file types (JPG, PNG, GIF, BMP) while preserving image quality.

πŸ› οΈ Requirements

This script requires the Pillow library. You can install it using pip:

pip install Pillow

πŸš€ How to Use

1. Setup

  1. Save the Script: Save the code as image_resizer.py.
  2. Create Input Folder: In the same directory, create a folder named input_images.
  3. Place Images: Put all the images you want to resize into the input_images folder.

2. Execution

Run the script from your terminal:

python image_resizer.py

3. Output

A new folder named output_images will be automatically created. This folder will contain all the resized files, named with the prefix resized_ to distinguish them from the originals.

πŸ“‚ Project Structure

image-resizer-tool/
β”œβ”€β”€ image_resizer.py # The core resizing script
β”œβ”€β”€ README.md # Project documentation
β”œβ”€β”€ input_images/ # Folder where you place original images
β”œβ”€β”€ photo1.jpg
└── logo.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages