Python script to reshape images into square shape without cropping
Disclaimer: Code from https://note.nkmk.me/en/python-pillow-add-margin-expand-canvas/ was used to add padding to image
- Pip install pillow
- Target images must be in a directory called "source"
- Run main.py
- Paste path to directory where "source" is located
- Example: D:\Projects\AI Art\Training Data\Character
- "source" must be located within "Character" directory
- Resized images will be save to "resized" folder within "Character" folder