This project is responsible for moving and reordering the images in a folder, dividing them into sub-folders divided by year and month.
Follow these steps to install the project:
- Clone the repository:
git clone https://github.com/fabietto01/OrderFotto.git - Enter the project directory:
cd OrderFotto - Create a Python virtual environment:
python3 -m venv env - Activate the virtual environment:
- On Windows:
.\env\Scripts\activate - On Unix or MacOS:
source env/bin/activate
- On Windows:
- Install the dependencies from the requirements.txt file:
pip install -r requirements.txt
To use the project, simply start the main.py file and pass the required arguments: --input, --output and --multi-thread. The --multi-thread argument is not mandatory and by default is set to false. The other two arguments, --input and --output, represent respectively the source folder where all the photos are present and the destination folder where the script will insert the images.
For example:
- Run the command:
python main.py --input path/to/the/photo/folder --output path/to/the/destination/folder - If you want to use multi-threading, add the
--multi-threadargument:python main.py --input path/to/the/photo/folder --output path/to/the/destination/folder --multi-thread - Follow the instructions displayed on the console.