Skip to main content

Archive images based on exif timestamp.

Project description

archive-images

Description

Small python package to create an image archive from a bunch of unordered images. The images are archived on the basis of the timestamp in the exif data.

Installation

You can install the simpleicp package from PyPI:

pip install archive-images

Then call the help screen of executable with archive-images --help.

Usage notes

The default target path of an image in the archive is year/month/%Y_%m_%d_%H_%M_%S.%f.ext, e.g. image_archive\2018\04\2018_04_03_17_21_20.219.jpg. Note that the extension of an image is automatically converted to lowercase, e.g. .JPG to .jpg.

Help screen

usage: archive-images [-h] -i IMAGEFOLDER -a IMAGEARCHIVE [-e IMAGEEXTENSIONS] [-m {copy,move}]
                      [-fs FILTERBYIMAGESIZE FILTERBYIMAGESIZE] [-d] [-n] [-c]

required arguments:
  -i IMAGEFOLDER, --imageFolder IMAGEFOLDER
                        Path to input folder with images to archive. (default: None)
  -a IMAGEARCHIVE, --imageArchive IMAGEARCHIVE
                        Path to output folder with image archive. (default: None)

optional arguments:
  -e IMAGEEXTENSIONS, --imageExtensions IMAGEEXTENSIONS
                        Extensions of images to archive separated by commas.
                        (default: ['jpg', 'jpeg'])
  -m {copy,move}, --mode {copy,move}
                        Move or copy image files to archive? (default: copy)
  -fs FILTERBYIMAGESIZE FILTERBYIMAGESIZE, --filterByImageSize FILTERBYIMAGESIZE FILTERBYIMAGESIZE
                        Archive only images with a specific image size. The image size must be
                        specified as two integer numbers separated by a single space,
                        i.e. num1 num2. The orientation of the images (portrait or landscape) is
                        not considered by this filter, i.e. images with size num1-by-num2 or
                        num2-by-num1 are archived. (default: [0, 0])
  -d, --addDuplicates   Add duplicates to a subfolder "duplicates" in image archive?
                        (default: False)
  -n, --addNoExif       Add images with no exif information to a subfolder "no_exif" in image
                        archive? (default: False)
  -c, --confirm         Confirm each operation before execution? (default: False)

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

archive-images-1.0.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

archive_images-1.0.3-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file archive-images-1.0.3.tar.gz.

File metadata

  • Download URL: archive-images-1.0.3.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for archive-images-1.0.3.tar.gz
Algorithm Hash digest
SHA256 0ac6cb613b891e1912f5e18f08788d2c904bbec4b71d26bc2ef749be6b141359
MD5 3b9806432c256ed82bc5a1880a70ee81
BLAKE2b-256 34b941f5943fa2923ef20818fa27fcbc4e3162a1ab4b9ce218945699f9297ebe

See more details on using hashes here.

File details

Details for the file archive_images-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: archive_images-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for archive_images-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ffe0b7ede011c008f8ea0f1219e94916e17b4fa2a3dfde0e620a7a4c237193b1
MD5 7603d65c7002ef531ce39d309dce99d2
BLAKE2b-256 00efde4ec2934961f1fc157c151b15fad1ff0d538c6b96c5e6d5216fdf63df1c

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