This script takes an image and adds white padding to the image to make it 1:1 image.
-
Clone the repository:
git clone git@github.com:thisshri/photo-utility-tool.git
-
Go to src directory and run:
./main.py --i foo.jpg
Image in the 1st row
was padded on top and bottom to make it 1:1 where as image in 2nd row
was padded on left and right.
Image Padding | Before | After |
---|---|---|
Vertical | ||
horizontal |