Skip to content

Processes images in bulk for renaming, cropping, and resizing.

Notifications You must be signed in to change notification settings

jjunkergamedev/BulkImageProc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BulkImageProc

Processes images in bulk for renaming, cropping, and resizing.

Usage:

python main.py --src <source pattern> --out <output directory> [--mode <mode>]
  • src: The input files to process. Parsed with python's glob module; should look something like "SourceDirectory/*.png"
  • out: The output directory. Use <path> as the relative path to the source file's parent directory, e.g. "<path>/out".
  • mode: The mode that determines how images are processed and renamed. Currently defaults to the only supported mode, "eternal_draft".

Modes:

eternal_draft: Assumes input images are a 16x9 aspect ratio. Crops the image to the visible cards for an eternal draft, resizes and saves as jpeg. Names images like "02_p1p2.jpg".

Requirements: Uses Python 3. Must have Python Image Library installed. Get it with "pip install pillow".

About

Processes images in bulk for renaming, cropping, and resizing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages