Skip to content

alexeyantropov/pic2pola

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pic2pola

A simple script for getting Polaroid-style image for printing. Requires Pillow and loguru.

How to run

It's only tested on mac os with miniconda, you need to install Python with Pillow before.

An example:

./tests/example.sh

Process a real image image:

./pic2pola --img tests/IMG_0654.jpeg

How 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 text

Develop

Python 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.sh

Env create or update:

~/miniconda/bin/conda env create -f ./develop/miniconda.yml
~/miniconda/bin/conda env update -f ./develop/miniconda.yml

About

A simple cli tool takes a photo and metadata as geo, hashtags or other captions and generates a polaroid-style image for printing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors