Memories is an easy to use package that helps to seperate clustered images from files and helps add metadata to files. The documentation is in progress and can be found here.
$ pip install memories
There are 8 functions for the time being:
open_image
: Returns the Image object to you so that it can be passed around to other functionsdivided_crop
: Takes 3 inputs, the path to the image, the path where the outful folder should be and the number of images present in the input file. It performs the task of dividing a single image into multiple smaller ones.add_date
: Takes input as the image path and the datetime to be added. it will add date when the image was originally taken.bulk_add_date
: Same as addDate, except it will add date to all images in a folder. The inputs are the folder path and datetime.save_image
: Converts a single image into another formatmake_page
: Creates a year book like page in HTMLmake_border
: Creates a border around the imagerotate_image
: Returns a rotated image
import memories
# Add meta data to images
memories.add_date("./image-1.jpg", "27/04/2021 12:00:03")
memories.bulk_add_date("./", "27/04/2021 12:00:03")
memories.make_page(["./folder1/image1.png", "./folder2/image2.jpg"], ["CSS", "Larry"], ["SASS", "Another line"], "./save_folder")
image = memories.open_image("./image.png")
memories.divided_crop(image, image_quantity = 6, bgr_value = [255, 255, 255])
# Normal squared borders
memories.make_border(image, "normal", bgr_value = [255, 255, 255], border_dimensions = [100, 100, 100, 100])
# Curved borders
memories.make_border(image, "curved", bgr_value = [255, 255, 255], border_dimensions = [100, 100, 100, 100], radius_dimensions = [100, 100, 100, 100])
memories.save_image("image.png", "path/to/save_folder/file.extention")
# Save multiple images at once
memories.save_image(["img-1.png", "img-1.jpg", "img-2.jpg"], "path/to/save_folder/file.extention")
# Save multiple images as a pdf
memories.save_image(["img-1.png", "img-1.jpg", "img-2.jpg"], "path/to/save_folder/file.pdf")
Current features that are present are:
- Crop out basic implementation
- Add Date and time metadata
- Save as PDF, PNG, JPG
- Basic Scrapbook implmentation
- Documentation
- Border
Future features can also be found here:
- Collage
- Image Age identifyer
This software is released under the MIT license, see LICENSE.txt.