From faa68a5d9fc4690944ef7c448327d23397611bf6 Mon Sep 17 00:00:00 2001 From: Olivier Date: Thu, 8 Apr 2021 13:33:00 +0100 Subject: [PATCH] Release 0.1.0 --- .gitignore | 3 +++ LICENCE | 9 ++++++++ README.md | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 LICENCE create mode 100644 README.md diff --git a/.gitignore b/.gitignore index e739599..13c801b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ /.idea /.venv +/build +/dist +/phototrie.egg-info diff --git a/LICENCE b/LICENCE new file mode 100644 index 0000000..7d3224f --- /dev/null +++ b/LICENCE @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright © 2021 Olivier 'reivilibre' + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..5be6d52 --- /dev/null +++ b/README.md @@ -0,0 +1,61 @@ +# phototrie (and other helper scripts) + +Phototrie is a minimalistic application for quickly sorting through your +photographs. + +This repository also includes `batchrename` and `datename`, two commands useful +for organising photographs. + + +## Usage + +### phototrie + +Run `phototrie JPG` in a directory where you have unsorted `JPG` photos. + +`CR2` photos in the same directory, or in a `CR2/` subdirectory, +with the same name will also be processed. + +Wait a short while for thumbnails to be generated. Once this has completed, +a window will pop up, showing your photos. + +Press `B` to mark a photo as *bad*, `G` for *good* and `P` for *pristine* +(future versions may allow custom names). + +Phototrie will move them into directories with those labels as you go along. + + +### datename + +`datename photo1.jpg photo2.jpg` (etc) + +e.g. `datename *.JPG` to process all JPG files in a directory. + +This will rename photos to have their date (as stored in EXIF) as their name. + +`CR2` photos in the same directory, or in a `CR2/` subdirectory, +with the same name will also be processed. + +Once you are ready to apply the changes for real, pass `--apply` (or `-y`). + + +### batchrename + +`batchrename photo1.jpg photo2.jpg` (etc) + +e.g. `batchrename .JPG$ .jpg *.JPG` + +Once you are ready to apply the changes for real, pass `--apply` (or `-y`). + + +## Installation + +You will probably need to install (on Debian/Ubuntu): + +`apt install python3-dev python3-pip python3-tk python3-pil python3-pil.imagetk` + +Then you can use: + +`pip3 install --user phototrie` + +(or, install from this repository: `pip3 install --user git+https://bics.ga/reivilibre/phototrie`)