Skip to main content

Transfer images and videos from one directoy to another with new folder structure by date

Project description

Image Transfer

Basic package to transfer images and videos into a date structure.

This package looks through both images and videos for creation time metadata. If found it can copy or move the files from a source directory to a destination directory. The sub directory of the destination directory will be based on creation time. As default year/month/day e.g 2023/01/27.

Usage

Copy from one directory to another

imgtrf copy {source/directory} {destination/directory}

Move from one directory to another

imgtrf move {source/directory} {destination/directory}

Change format of destination directory structure.
Defaults to Y/m/d for Year/Month/Day. Directories are seperated by / and the format codes can be found here.

imgtrf copy --dir-format {dir_format} {source/directory} {destination/directory}

You can also remove empty directories.

imgtrf remove dirs {target/root/directory}

You can always find specific help with the --help flag.

# Either for the application
imgtrf --help

# Or for a specific command
imgtrf copy --help

Installation

Installation of image-transfer is simply done via a pip command.

pip install image-transfer

FFmpeg

To support gathering metadata from video files, you need to have FFmpeg installed and added to your PATH environment variable. FFmpeg can either be installed from their site ffmpeg.org
It can also be donwloaded via winget in windows or apt in linux.

winget install --id Gyan.FFmpeg

or if on linux

sudo apt install ffmpeg

Make sure to check your environment variables. Some times even a restart of your computer is necessary for them to be read in properly.

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

image-transfer-0.2.0.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

image_transfer-0.2.0-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

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