Skip to content

1fc0nfig/resizr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

resizr

Lightweight image resize tool for UNIX based systems.

Instalation:

Make sure you have ffmpeg installed!

linux:

apt install ffmpeg

Mac OS:

brew install ffmpeg

Usage:

python3 resizr.py [-s source_directory] [--res 1920:1080] [-f png]

Options:

  • [-s] Source directory containing images. default: .
  • [--res] Output file resolution. default: 1920x1080
  • [-f] File extensions to loop over. default: png

How it works?

The script loops over image files of different resolutions in source_directory and add black sides, either on top or bottom, depending on it's resolution, to each one.

Result is output directory with all images with same resolution, depending on --res option

Example:

input image: 900x675 input image image output: 1920x1080 output image : 1920x1080

About

python image resize tool.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages