Skip to content

o14y/fit2learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fit2learn

NAME fit2learn.py - A tool that resizes images while maintaining aspect ratio and adds a specified background color.

SYNOPSIS fit2learn.py --input_dir=INPUT_DIR

DESCRIPTION A tool that resizes images while maintaining aspect ratio and adds a specified background color.

ARGUMENTS INPUT_DIR The directory path where the input images are located.

FLAGS -o, --output_dir=OUTPUT_DIR Default: '' The directory path where the resized images will be saved. If '' is specified for output_dir, the resized images will be saved to '_out' in the input directory. -i, --image_size=IMAGE_SIZE Default: (1024, 1024) The size (width, height) of the resized images. -b, --background_color=BACKGROUND_COLOR Default: (0, 0, 0, 0) The RGBA tuple (r,g,b,a) representing the background color of the resized images.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published