Skip to content

SajjadTalks/Logo-Resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logo Resizer

Python script for resizing logo images to standard dimensions while preserving transparency and aspect ratio.

Requirements

pip install Pillow

Usage

python logo_resizer.py input_logo.jpg
python logo_resizer.py input_logo.png -o custom_output.png
python logo_resizer.py logo.svg -s 512 512

Arguments

  • input - Input logo file path (required)
  • -o, --output - Output file path (default: resized_logo.png)
  • -s, --size - Width and height in pixels (default: 256 256)

Features

  • Maintains aspect ratio
  • Preserves transparency
  • Centers logo on transparent background
  • Outputs optimized PNG format
  • Supports common image formats (JPG, PNG, SVG, etc.)

Output

All logos are resized to fit within specified dimensions, centered on a transparent background, and saved as PNG files.

About

Python script for resizing logo images

Resources

License

Stars

Watchers

Forks

Languages