A simple script for getting Polaroid-style image for printing. Requires Pillow and loguru.
It's only tested on mac os with miniconda, you need to install Python with Pillow before.
An example:
./tests/example.shProcess a real image image:
./pic2pola --img tests/IMG_0654.jpegHow to add additional info on the picture, see help:
$ ./pic2pola -h
usage: main.py [-h] --img IMG [--date DATE] [--geo GEO] [--hashtags HASHTAGS] [--caption CAPTION]
Convert a picture into a Polaroid-style photo with optional captions.
options:
-h, --help show this help message and exit
--img IMG Path to the input image file.
--date DATE Date of the event.
--geo GEO Geolocation information (e.g. "Paris, France"
--hashtags HASHTAGS Comma-separated list of hashtags (e.g. "vacation,travel,photo")
--caption CAPTION Additional caption textPython setup:
curl -o /tmp/m.sh -s https://repo.anaconda.com/miniconda/Miniconda3-py311_26.1.1-1-MacOSX-arm64.sh && bash /tmp/m.sh -b -p $HOME/miniconda && rm -rf /tmp/m.shEnv create or update:
~/miniconda/bin/conda env create -f ./develop/miniconda.yml~/miniconda/bin/conda env update -f ./develop/miniconda.yml