Skip to main content

A library for those who want to convert their older images into digitised format (with metadata), and beautify them using borders and other options.

Project description

Memories

PyPi Documentation Status License Language grade: Python Downloads

Description

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.

Installation

$ pip install memories

How to Use:

There are 7 functions at the time being:

  • open_image: Returns the Image object to you so that it can be passed around to other functions
  • divided_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_pdf: Converts a list of images (one or more) into a PDF
  • save_image: Converts a single image into another format
  • make_page: Creates a year book like page in HTML
  • make_border: Creates a border around the image

Example

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(["./source_folder/image1.png", "./random/another_source_folder/image2.jpg"], ["CSS", "Larry"], ["SASS", "That one got to you, didnt it"], "./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_pdf(["img-1.png", "img-1.jpg", "img-2.jpg"], "path/to/save_folder/file.pdf")

Features

Current features that are present are:

  1. Crop out basic implementation
  2. Add Date and time metadata
  3. Save as PDF, PNG, JPG
  4. Basic Scrapbook implmentation
  5. Documentation
  6. Border

Future features can also be found at Featuers:

  1. Collage
  2. Image Age identifyer

License

This software is released under the MIT license, see LICENSE.txt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memories-0.8.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

memories-0.8-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file memories-0.8.tar.gz.

File metadata

  • Download URL: memories-0.8.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for memories-0.8.tar.gz
Algorithm Hash digest
SHA256 24cbed9ae7403925739e15695e79bbc6a85290f933023e43906d413d32d83eaf
MD5 37ec8cb24897539278ab01cafe18f0c1
BLAKE2b-256 ade3141fbedac4d5d51e1d16d898a726ff931e54f0a7af2557fbb8938eb01297

See more details on using hashes here.

File details

Details for the file memories-0.8-py3-none-any.whl.

File metadata

  • Download URL: memories-0.8-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for memories-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7dbe58fafa60ddbf8f3cf65aeca02661c57466ba32dad63e4560bb34597ee4c8
MD5 92a79a2afd74793c14e6fc257eeb027c
BLAKE2b-256 3b644a5c7b75322bfb7b566082396d2f72d8072781f1a957ffe93f1ad7224f67

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page