Browse Source

update links

master
René Wagner 6 months ago
parent
commit
a8cfae0d5f
  1. 26
      .build.yml
  2. 4
      PKGBUILD
  3. 16
      README.md
  4. 6
      phosta

26
.build.yml

@ -1,26 +0,0 @@
image: archlinux
packages:
- perl
- perl-par-packer
- perl-file-homedir
- perl-dbi
- perl-dbd-sqlite
- perl-modern-perl
- perl-text-simpletable-autowidth
sources:
- https://git.sr.ht/~rwa/photo-stats
artifacts:
- photo-stats/output.tar
tasks:
- build: |
cd photo-stats
perl -cw phosta.pl
mkdir bin
/usr/bin/vendor_perl/pp -z 9 -f Bleach -o phosta phosta.pl
- package: |
TAG=`date +"%Y%m%d"`
cd photo-stats
tar -czf ${TAG}_linux_amd64.tar.gz phosta
makepkg -g
makepkg
tar -cf output.tar *.tar.gz *.tar.zst

4
PKGBUILD

@ -3,10 +3,10 @@
pkgname=photo-stats
pkgver=20200718
pkgrel=1
pkgdesc='photo stats for '
pkgdesc='photo stats for your terminal'
arch=('x86_64')
license=('BSD')
url='https://git.sr.ht/~rwa/photo-stats'
url='https://src.clltr.info/rwa/photo-stats'
provides=('photo-stats')
options=(!strip)
source=('phosta')

16
README.md

@ -1,12 +1,10 @@
# Photo Stats
[![builds.sr.ht status](https://builds.sr.ht/~rwa/photo-stats.svg)](https://builds.sr.ht/~rwa/photo-stats?)
This project is a small statistic generator for the terminal which accumulates data about your photographical habits.
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 methods to query the gathered data and gain some statistical insight.
**Additional information can be found on the [wiki page](https://man.sr.ht/~rwa/photo-workflow/photo-stats.md).**
**Additional information can be found on the [wiki page](https://src.clttr.info/rwa/photo-stats/wiki/Home).**
## features
- loading of EXIF data from media files to a self-contained database
@ -38,7 +36,7 @@ You can add different folders one by another to the database, the import will ta
After you've added some data, you can query different statistics which might be interesting. There are no predefined stats, instead you have the option to adjust the output to your needs using the different params.
For a complete list of params and example querys use `phosta --help` or have a look at the [wiki](https://man.sr.ht/~rwa/photo-workflow/index.md).
For a complete list of params and example querys use `phosta --help` or have a look at the [wiki](https://src.clttr.info/rwa/photo-stats/wiki/Params).
### example output
The output will be shown as a bar graph when you select only one output column:
@ -87,15 +85,11 @@ A total of **5090 images** matched your criteria.
```
## requirements
The famous `exiftool` needs to be installed on your system, no matter if you use prebuilt binarys or the bare scripts.
### using binary (recommended)
There are prebuilt binarys (currently only x86\_64 for linux and Haiku) and packages for Arch Linux and derivatives available for [every ref](https://git.sr.ht/~rwa/photo-stats/refs).
The famous `exiftool` needs to be installed on your system.
### using bare scripts
Simply clone the repo or manually download the scripts from https://git.sr.ht/~rwa/photo-stats/
Simply clone the repo or manually download the scripts from https://src.clttr.info/rwa/photo-stats/
To run the script, open a shell and invoke `perl phosta.pl`, on most systems it should be sufficient to just invoke `phosta.pl` (after you granted execute-permissions to the script).
To run the script, open a shell and invoke `perl phosta`, on most systems it should be sufficient to just invoke `phosta` (after you granted execute-permissions to the script).
#### prerequisites for running the pure scripts

6
phosta.pl → phosta

@ -1,7 +1,7 @@
#!/usr/bin/perl
# Copyright(c) René Wagner 2019-2020
# https://git.sr.ht/~rwa/photo-stats
# published under BSD 3-Clause License - https://git.sr.ht/~rwa/photo-stats/tree/master/LICENSE
# https://src.clttr.info/rwa/photo-stats
# published under BSD 3-Clause License
use Modern::Perl '2019';
no warnings 'experimental';
@ -426,7 +426,7 @@ sub main::HELP_MESSAGE
say '';
say 'EXIF data extraction for media tools and stats querying for your terminal.';
say '';
say 'usage: phosta(.pl) [options]';
say 'usage: phosta [options]';
say '';
say 'generic options:';
say ' -D <file> : path and name of the db file to use, defaults to <workingdir>/photo_stats.db';
Loading…
Cancel
Save