Skip to content

This Python script allows you to easily resize an image to multiple dimensions using the Pillow library. It supports various operating systems, including Windows, Linux, and MacOS.

Notifications You must be signed in to change notification settings

DlgshKurd/Image-Resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Description

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.

Recording2024-02-10222738-ezgif com-video-to-gif-converter

Features

  • Resize input image to specified sizes
  • Save resized images in an output folder
  • Command line interface for easy usage

Installation

  1. Install Python (if not already installed)
  2. Install PIL and click library: pip install click Pillow
  3. Download the script from the GitHub repository: Image Resizer GitHub Repo

Configuration

  • Default sizes for resizing are [16, 32, 48, 128]

Example Usages

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"

ImageResizer Executable

run the following in your command line:

ImageResizer.exe "Path/to/image.png" -o "Downloads" -s 10,20,30

Issues

If you encounter any issues or have suggestions, please open an issue.

About

This Python script allows you to easily resize an image to multiple dimensions using the Pillow library. It supports various operating systems, including Windows, Linux, and MacOS.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages