Re: Program to dole out jpg's to subdirctories, card-dealing style.

Liste des GroupesRevenir à col misc 
Sujet : Re: Program to dole out jpg's to subdirctories, card-dealing style.
De : * (at) *nospam* eli.users.panix.com (Eli the Bearded)
Groupes : comp.os.linux.misc
Date : 30. Jun 2025, 06:53:34
Autres entêtes
Organisation : Some absurd concept
Message-ID : <eli$2506300151@qaz.wtf>
References : 1 2 3 4
User-Agent : Vectrex rn 2.1 (beta)
In comp.os.linux.misc,
Fritz Wuehler  <fritz@spamexpire-202506.rodent.frell.theremailer.net> wrote:
Eli the Bearded <*@eli.users.panix.com> [EtB]:
EtB> What I would really like is compound searching.
Does your program add its photo tags/dates to a database (e.g. sqlite)?
Can you query its database with other (generic) tools?

My program uses mysql. But (a) I'm not great at writing sql and (b) one
of the largest pain points is loading data into it.

With great work I came up with a tool that builds queries, but not
all the ones I might want. Nor am I impressed with the speed I get.

Example:

$ find-image --debug --tag dog --tag monterey --after 2004:10 --before 2004:12

     SELECT a.* FROM `ark_images` a
           INNER JOIN `ark_images_tags` i ON i.`image_id` = a.`image_id`
           INNER JOIN `ark_tags` t        ON t.`tag_id`   = i.`tag_id`
         WHERE t.`tag_clean` = ?
         AND a.`image_id` IN (
           SELECT DISTINCT a.`image_id` FROM `ark_images` a
           INNER JOIN `ark_images_tags` i ON i.`image_id` = a.`image_id`
           INNER JOIN `ark_tags` t        ON t.`tag_id`   = i.`tag_id`
         WHERE t.`tag_clean` = ?
         )
         AND a.`image_date` > ?
         AND a.`image_date` < ?
   LIMIT 50;
Binding params: dog, monterey, 2004:10, 2004:12

$ find-image --help
find-image general options:
  --newer  / -N         sort newer first
  --older  / -O         sort older first
  --random / -R         random order results
  --limit  / -L         smaller sample size

Searching optins:
  --anywhere    TEXT / -A TEXT         description or title or tag
                                          or filename like %TEXT%
  --tag         TEXT / -t TEXT         and clean tag TEXT
  --ortag       TEXT / -o TEXT         or clean tag TEXT
  --taglike     TEXT / -l TEXT         and clean tag like %TEXT%
  --nottag      TEXT / -n TEXT         does not have tag TEXT
  --title       TEXT / -T TEXT         and with TEXT in title
  --description TEXT / -d TEXT         and with TEXT in description
  --filename    TEXT / -f TEXT         and with TEXT in filename
  --after       DATETIME / -a DATETIME after  'YYYY:MM:DD HH:MM:SS'
  --before      DATETIME / -b DATETIME before 'YYYY:MM:DD HH:MM:SS'

DATETIME can be shortened to YYYY, or YYYY:MM, etc
$

I've mapped camera name and location (using long-lat to name database)
to special "tags", but it's not as useful as I hoped, at least for
location: eg:

Title: IMG_3916
image_id: 30347   image_path: /flickr/95/06/3516049506.jpg
image_name: 3516049506   image_date: 2009-03-29 13:47:24

Tags: _county_ San Mateo; _locality_ Pescadero; _country_ United States;
_device_ Canon PowerShot SD870 IS; family; IMG_3916; dog; bo; beach;
bean hollow; 3916; _state_ California; california

"Pescadero" is a fine as that goes, but "bean hollow" beach is a much
smaller area.

There's a (password protected) web ui, too, but it needs even more polish.

Elijah
------
stopped working on it sometime in 2023

Date Sujet#  Auteur
23 Jun 25 * Program to dole out jpg's to subdirctories, card-dealing style.78pH
23 Jun 25 +* Re: Program to dole out jpg's to subdirctories, card-dealing style.6Robert Heller
23 Jun 25 i`* Re: Program to dole out jpg's to subdirctories, card-dealing style.5pH
23 Jun 25 i +* Re: Program to dole out jpg's to subdirctories, card-dealing style.2Robert Heller
23 Jun 25 i i`- Re: Program to dole out jpg's to subdirectories, card-dealing style.1Lawrence D'Oliveiro
23 Jun 25 i +- Re: Program to dole out jpg's to subdirctories, card-dealing style.1rbowman
24 Jun 25 i `- Re: Program to dole out jpg's to subdirctories, card-dealing style.1pH
23 Jun 25 +* Re: Program to dole out jpg's to subdirctories, card-dealing style.2Lawrence D'Oliveiro
24 Jun 25 i`- Re: Program to dole out jpg's to subdirctories, card-dealing style.1pH
23 Jun 25 +* Re: Program to dole out jpg's to subdirctories, card-dealing style.5Eli the Bearded
24 Jun 25 i`* Re: Program to dole out jpg's to subdirctories, card-dealing style.4pH
24 Jun 25 i `* Re: Program to dole out jpg's to subdirctories, card-dealing style.3Rich
24 Jun 25 i  `* Re: Program to dole out jpg's to subdirctories, card-dealing style.2Eli the Bearded
24 Jun 25 i   `- Re: Program to dole out jpg's to subdirctories, card-dealing style.1Lawrence D'Oliveiro
23 Jun 25 +- Re: Program to dole out jpg's to subdirctories, card-dealing style.1c186282
23 Jun 25 +* Re: Program to dole out jpg's to subdirctories, card-dealing style.62Richard Kettlewell
24 Jun 25 i+* Re: Program to dole out jpg's to subdirctories, card-dealing style.52pH
24 Jun 25 ii`* Re: Program to dole out jpg's to subdirctories, card-dealing style.51Lawrence D'Oliveiro
24 Jun 25 ii +* Re: Program to dole out jpg's to subdirctories, card-dealing style.4c186282
24 Jun 25 ii i`* Re: Program to dole out jpg's to subdirctories, card-dealing style.3rbowman
24 Jun 25 ii i `* Re: Program to dole out jpg's to subdirctories, card-dealing style.2c186282
24 Jun 25 ii i  `- Re: Program to dole out jpg's to subdirctories, card-dealing style.1rbowman
24 Jun 25 ii `* Re: Program to dole out jpg's to subdirctories, card-dealing style.46c186282
24 Jun 25 ii  `* Re: Program to dole out jpg's to subdirctories, card-dealing style.45Rich
24 Jun 25 ii   +* Re: Program to dole out jpg's to subdirctories, card-dealing style.2rbowman
27 Jun20:46 ii   i`- Re: Program to dole out jpg's to subdirctories, card-dealing style.1Rich
25 Jun 25 ii   `* Re: Program to dole out jpg's to subdirctories, card-dealing style.42c186282
27 Jun20:49 ii    `* Re: Program to dole out jpg's to subdirctories, card-dealing style.41Rich
27 Jun23:34 ii     `* Re: Program to dole out jpg's to subdirctories, card-dealing style.40c186282
29 Jun00:06 ii      `* Re: Program to dole out jpg's to subdirctories, card-dealing style.39Lawrence D'Oliveiro
29 Jun04:41 ii       `* Re: Program to dole out jpg's to subdirctories, card-dealing style.38Eli the Bearded
29 Jun05:44 ii        +- Re: Program to dole out jpg's to subdirctories, card-dealing style.1Lawrence D'Oliveiro
29 Jun10:35 ii        +* XDG and Freedesktop (was: Re: Program to dole out jpg's to subdirctories, card-dealing style.)32Nuno Silva
30 Jun00:58 ii        i`* Re: XDG and Freedesktop (was: Re: Program to dole out jpg's to subdirctories, card-dealing style.)31Lawrence D'Oliveiro
30 Jun06:18 ii        i +* Re: XDG and Freedesktop (was: Re: Program to dole out jpg's to subdirctories, card-dealing style.)26Eli the Bearded
30 Jun07:52 ii        i i`* Re: XDG and Freedesktop (was: Re: Program to dole out jpg's to subdirctories, card-dealing style.)25Lawrence D'Oliveiro
30 Jun19:50 ii        i i +* Re: XDG and Freedesktop (was: Re: Program to dole out jpg's to subdirctories, card-dealing style.)19Eli the Bearded
30 Jun21:15 ii        i i i+* Re: XDG and Freedesktop (was: Re: Program to dole out jpg's to subdirctories, card-dealing style.)11John Ames
1 Jul01:30 ii        i i ii+- Re: XDG and Freedesktop (was: Re: Program to dole out jpg's to subdirctories, card-dealing style.)1Lawrence D'Oliveiro
1 Jul08:38 ii        i i ii`* Re: XDG and Freedesktop9Richard Kettlewell
1 Jul20:49 ii        i i ii `* Re: XDG and Freedesktop8John Ames
2 Jul00:57 ii        i i ii  +* Re: XDG and Freedesktop6Lawrence D'Oliveiro
2 Jul09:33 ii        i i ii  i`* Re: XDG and Freedesktop5Nuno Silva
3 Jul00:41 ii        i i ii  i `* Re: XDG and Freedesktop4Lawrence D'Oliveiro
3 Jul15:55 ii        i i ii  i  `* Re: XDG and Freedesktop3John Ames
3 Jul16:37 ii        i i ii  i   `* Re: XDG and Freedesktop2The Natural Philosopher
3 Jul16:53 ii        i i ii  i    `- Re: XDG and Freedesktop1John Ames
2 Jul09:27 ii        i i ii  `- Re: XDG and Freedesktop1The Natural Philosopher
1 Jul00:14 ii        i i i+- Re: XDG and Freedesktop1Bobbie Sellers
1 Jul01:29 ii        i i i`* Re: XDG and Freedesktop (was: Re: Program to dole out jpg's to subdirctories, card-dealing style.)6Lawrence D'Oliveiro
1 Jul04:40 ii        i i i `* Re: XDG and Freedesktop (was: Re: Program to dole out jpg's to subdirctories, card-dealing style.)5Eli the Bearded
1 Jul05:28 ii        i i i  `* Re: XDG and Freedesktop (was: Re: Program to dole out jpg's to subdirctories, card-dealing style.)4Lawrence D'Oliveiro
1 Jul17:01 ii        i i i   `* Re: XDG and Freedesktop (was: Re: Program to dole out jpg's to subdirctories, card-dealing style.)3John Ames
1 Jul17:10 ii        i i i    +- Re: XDG and Freedesktop1Bobbie Sellers
2 Jul00:57 ii        i i i    `- Re: XDG and Freedesktop1Lawrence D'Oliveiro
1 Jul00:07 ii        i i `* Re: XDG and Freedesktop5Nuno Silva
1 Jul01:33 ii        i i  `* Re: XDG and Freedesktop4Lawrence D'Oliveiro
1 Jul07:02 ii        i i   `* Re: XDG and Freedesktop3Nuno Silva
1 Jul08:30 ii        i i    +- Re: XDG and Freedesktop1Lawrence D'Oliveiro
1 Jul14:36 ii        i i    `- Re: XDG and Freedesktop1Rich
1 Jul00:12 ii        i `* Re: XDG and Freedesktop4Nuno Silva
1 Jul01:21 ii        i  `* Re: XDG and Freedesktop3Lawrence D'Oliveiro
1 Jul05:20 ii        i   `* Re: XDG and Freedesktop2Eli the Bearded
1 Jul05:25 ii        i    `- Re: XDG and Freedesktop1Lawrence D'Oliveiro
1 Jul18:00 ii        `* Re: Program to dole out jpg's to subdirctories, card-dealing style.4candycanearter07
1 Jul20:29 ii         `* Re: Program to dole out jpg's to subdirctories, card-dealing style.3Eli the Bearded
2 Jul19:20 ii          `* Re: Program to dole out jpg's to subdirctories, card-dealing style.2candycanearter07
3 Jul17:18 ii           `- Re: Program to dole out jpg's to subdirctories, card-dealing style.1Eli the Bearded
29 Jun11:30 i`* Re: Program to dole out jpg's to subdirctories, card-dealing style.9Carlos E.R.
30 Jun01:17 i +* Re: Program to dole out jpg's to subdirctories, card-dealing style.6Fritz Wuehler
30 Jun06:53 i i+* Re: Program to dole out jpg's to subdirctories, card-dealing style.2Eli the Bearded
30 Jun07:55 i ii`- Re: Program to dole out jpg's to subdirctories, card-dealing style.1Lawrence D'Oliveiro
30 Jun07:05 i i`* Re: Program to dole out jpg's to subdirctories, card-dealing style.3c186282
30 Jun21:32 i i `* Re: Program to dole out jpg's to subdirctories, card-dealing style.2Eli the Bearded
1 Jul01:34 i i  `- Re: Program to dole out jpg's to subdirctories, card-dealing style.1Lawrence D'Oliveiro
30 Jun08:40 i +- Re: Program to dole out jpg's to subdirctories, card-dealing style.1The Natural Philosopher
30 Jun13:03 i `- Re: Program to dole out jpg's to subdirctories, card-dealing style.1Carlos E.R.
27 Jun21:57 `- Re: Program to dole out jpg's to subdirctories, card-dealing style.1Shadow

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal