photo-stats

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/photo-stats.git
Log | Files | Refs | README | LICENSE

commit d4c6492b9fbfae8fae1ac8150c263d98431d2c10
parent 6b875398753ee4f1d419b77c408f0bffda408ea4
Author: René Wagner <rwagner@rw-net.de>
Date:   Fri, 14 Aug 2020 12:54:30 +0200

remove unused modules and update README

Diffstat:
MREADME.md | 14+++++++++-----
Mphosta.pl | 2--
2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md @@ -2,7 +2,7 @@ This project is about a small tool providing some stats of your photography. -It is mainly a selfcontained [SQlite](https://sqlite.org) database that stores the data which is extracted from the exif data of your images using [exiftool](https://exiftool.org/) and provides some predefined statistics about the data which can be queried with the tool itself or a database tool like [SQLiteStudio](https://sqlitestudio.pl/). +It is mainly a selfcontained [SQlite](https://sqlite.org) database that stores the data which is extracted from the exif data of your images using [exiftool](https://exiftool.org/) and provides some predefined statistics about the data which can be queried with the tool itself. ## requirements The famous `exiftool` needs to be installed on your system. @@ -17,20 +17,24 @@ To run the script, open a shell and invoke `perl phosta.pl`, on most systems it #### prerequisites for running the pure scripts -- Perl 5.30 (or newer) +- Perl 5.32 (or newer) Additionally the following perl modules need to be installed: - Cwd - DBI - Perl::DBD::SQLite -- File::HomeDir -- File::Spec::Functions +- Perl::DBI +- Text::SimpleTable::AutoWidth ## usage +Before getting in touch with the stats, you need to populate the database with the data of your images. Run `phosta[.pl] -p <your_image_folder>` to add the data of the images in the folder and every subfolder to the database. +To query the stats, run `phosta[.pl] -q -s <fields> -g <grouping>`. -## available stats +For information about parameters and usage call `phosta[.pl] --help`. + +### available stats - pictures by lens - pictures by camera body - pictures by shutterspeed diff --git a/phosta.pl b/phosta.pl @@ -13,8 +13,6 @@ use Text::SimpleTable::AutoWidth; use Scalar::Util qw(looks_like_number); use Cwd; use DBI; -use File::Basename; -use File::Spec::Functions; use Getopt::Std; my $driver = "SQLite";