just a few photo manipulation tools
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
add_date_machine_tags.py
average_months.py
avg_phoots.py
readme.md

readme.md

Photo Manipulation Tools

average_months.py

The idea behind this script is to download all the photos from a Flickr set specified by its set ID, organize them by month taken, and then generate one average image (or long exposure simulation) for each month. It leverages avg_phoots.py to do the photo manipulation.

Usage:

    ./average_months.py [flickr_set_id]

avg_phoots.py

This script will generate an average image (or long exposure simulation) using all the images in a specified folder.

Usage:

    ./avg_phoots.py [folder] [combination_method] [output_file_name] [imaging_library]

folder is any folder you have permission to read that contains .jpg files.

combination_method is either crop or pad. crop means that all images are cropped into square images with dimensions equal to the smallest dimension found in all the images in the folder. pad means that all images are padded into square images with dimensions equal to the largest dimension found in all the images in the folder.

output_file_name is the filename that the average image will be written to.

imaging_library is either pil (if you want to use Python Imaging Library) or cv2 (if you want to use OpenCV, which seems to be faster).

add_date_machine_tags.py

This script will add machine tags to all photos in a specified flickr set with a specified namespace and predicate, but the value will be calculated based on the title (or, if you uncomment a line of code and comment a couple others, the photo's "taken" date). A valid OAuth key with write permissions must be available.

Usage:

    ./add_date_machine_tags.py [set_id] [namespace] [predicate]