https://github.com/aggrathon/image_importer
Parses the filenames and metadata for all files in a directory (recursively) and moves them to another directory with a temporal hierarchy.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.4%) to scientific vocabulary
Keywords
Repository
Parses the filenames and metadata for all files in a directory (recursively) and moves them to another directory with a temporal hierarchy.
Basic Info
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 4
Topics
Metadata Files
README.md
Image Importer
Parses the filenames and metadata for all files in a directory (recursively) and moves them to another directory with a temporal hierarchy. The canonical use-case is to import images from cameras or phones, but it could also be used for organising an existing library, or on other types of files than images.
Usage
To import all files from the input directory to the output directory use:
image_importer input output
To learn more about all options available use:
image_importer --help
Date Parsing
By default the software parses both the filenames and metadata (oldest date). With flags this can be changed to only consider filenames or metadata.
The 19th of May 2019 can be recognised, if the filename contains any of these patterns:
| Year-Month-Day | Day-Month-Year | |----------------|----------------| | *2019-05-19* | *19-05-2019* | | *20190519* | *19052019* | | *20190519* | *19052019* | | *2019 05 19* | *19 05 2019* |
Temporal Structure
When the files are moved to the output directory, a temporal hierarchy is created. The names of the directories can be customised with command line arguments:
| Directory Structure | Arguments | |---|---| | 2019 / 05 / image.jpg | | | 2019 / 2019-05 / image.jpg | -y | | 2019-05 / image.jpg | -f | | 2019 / 05 May / image.jpg | -m en | | 2019 / 2019-05 Maj / image.jpg | -y -m swe |
Example
{sh}
mkdir example1
touch example1/2005-07-14.txt
image_importer example1 example2 --clean --flat
rm example2/2005-07/2005-07-14.txt
rm -rf example1 example2
Executable
To build this software: install Rust, download this project, and run cargo build --release.
Alternatively, some prebuilt binaries can be found in releases.
Owner
- Name: Anton Björklund
- Login: Aggrathon
- Kind: user
- Company: @edahelsinki
- Repositories: 3
- Profile: https://github.com/Aggrathon
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0