Command line tools for photo importing/renaming/rotating
- Media files scan
- Time when picture was taken detection (by EXIF, by file name, by file attributes)
- Media files moving/copying to configurable hierarchy
- Lossless rotations (via exiftran or jpegtran)
Standalone web server for fast media import for headless computer
- Mounted storages detection (by path mask)
- Storages mount/unmount (via pmount)
- The same as photo-importer but without console
- Python 3.3+
- Debian based Linux (other Linux versions not officially supported, but might work)
- Windows 7 and above
- MacOS X and above (with brew installed, only console version)
- PyExifTool
- progressbar
- psutil
- exiftran or jpegtran
- pmount (only for server)
- pypiwin32 (only for windows)
sudo apt install exiftran exiftool pmount pip
sudo pip install photo-importer
debuild -b
sudo apt install pip python3-exif python3-progressbar exiftran python3-psutil
sudo pip install PyExifTool
sudo dpkg -i ../photo-importer_1.2.5_all.deb
sudo apt install exiftran exiftool pmount pip
sudo pip install PyExifTool progressbar psutil
sudo python3 ./setup.py install
Download and install python3 for you Windows distributive https://www.python.org/downloads/windows/
Download and install exiftool https://exiftool.org/
Download and extract jpegtran to photo_importer folder http://sylvana.net/jpegcrop/jpegtran/
Install with python dependencies
python -m pip install pypiwin32 photo-importer
photo-importer /path/to/media/files
Will process files (reanaming/rotating) in-place.
photo-importer /path/to/media/files /output/path
Will import (by default move, but it can be changed in config) files from /path/to/media/files to /output/path with date hierarchy creation and reanaming/rotating
- attach usb-drive / usert memory card
- open http://servername:8080
- click "Mount"
- click "Import"
- click "Unmount"
cd photo_importer
run.py -c ..\photo-importer-win.cfg path\to\media\files \output\path
photo-importer-server.bat
The server config file located in /etc/photo-importer.cfg
Command line tool config file located in ~/.photo-importer.cfg
Also config file can be specified by mean of -c command line option.
For options details see comments in the config file.
Thanks to everyone who tested and gave advice.
Bug reports, suggestions and pull request are welcome!
Give a ⭐️ if this project helped you!