A simple tool to change standard camera file namings.
Important notice: This tool works correctly only if your files have an underscore in the middle of their name.
Example:
DSC_NNNN.JPG to DSC_YYYYMMDD_HHMMSS.JPG
python3 -m venv .venv
On Windows:
.venv\Scripts\activate.bat
On Linux:
source .venv/bin/activate
And then add the required packages:
git add requirements.txt
poetry install
Required libraries will be added to a local .venv, created automatically. The steps for entering the virtul environment are the same as for the non-Poetry way.
To use, either import rename_camera_files in your own code or activate the main.py file and follow the instructions:
python main.py
It takes a file, gets its metadata tag relating to date and time of creation and changes the file name, replacing the iterative number with date and time.