A small script to add a border to a jpeg or png photo.
Exif data can also be extracted and added to the border if the mood strikes.
A colour palette can be added to the border as well.
git clone https://github.com/stevequinn/photoborder
cd photoborder
pip install -r requirements.txt
usage: python main.py [-h] [-e] [-p] [-f] [-fb] [-t{s,m,l,p,i}] filename
Add a border and exif data to a jpg or png photo
positional arguments:
filename
options:
-h, --help show this help message and exit
-e, --exif print photo exif data on the border
-p, --palette Add colour palette to the photo border
-t, --border_type Border Type: p for polaroid, s for small, m for medium, l for large, i for instagram (default: s)
-f, -font Font Typeface to use
-fb, --font bold Bold Font Typeface to use
--include File patterns to include (default: *.jpg *.jpeg *.png, *.JPG, *.JPEG, *.PNG)
--exclude File patterns to exclude (default: *_border*)
Made for fun and to solve a little problem.
Note: This is a hacked together little script. Use at your own peril...
Adds quick actions to you OSX menu for quick deployment of tool.
The repo comes with Roboto (Regular, Medium & Bold).
photoborder/fonts
Should you wish to use another font you should add it to the fonts
directory and use the appropriate arguments
> python main.py -t p -e -p image.jpeg
> python main.py -t s -e image.jpeg
> python main.py -t m -e image.jpeg