Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: pH Newsgroups: comp.os.linux.misc Subject: Re: Program to dole out jpg's to subdirctories, card-dealing style. Date: Tue, 24 Jun 2025 02:45:56 -0000 (UTC) Organization: A noiseless patient Spider Lines: 56 Message-ID: <103d3h3$1or0b$3@dont-email.me> References: <103a6c8$qvlb$1@dont-email.me> Injection-Date: Tue, 24 Jun 2025 04:45:56 +0200 (CEST) Injection-Info: dont-email.me; posting-host="60ed527fc5312c8bcb69c8d21d65755a"; logging-data="1862667"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+apy236CQYAALxtEdnkQ0g2pNjmwZC3lk=" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:8dF6D1W8WAPKH1xLYZLOSvcurfY= On 2025-06-23, Eli the Bearded <*@eli.users.panix.com> wrote: > In comp.os.linux.misc, pH wrote: >> I've got a pile of scanned family slides in various directories. >> >> They need to be further subdivided and catagorized so here's my scenario: >> >> 1: I have directory 'A' full of jpgs. >> >> 2: I make a few (3-5) suitable sub-directories in that directory. >> (eg: "pets" "cars" "ski_trip" etcetera) >> >> 3: Is there a program that will display a thumbnail of a jpg (or any size, I >> guess) and list the subdirectories somewhere on the screen, >> 1 - pets >> 2 - cars >> 3 - ski trip > > I use `feh` for such purposes. You can assign "actions" to the numbers > (0, 1, 2, 3 ..) so that when you view images you can hit a number and > run an action with the filename. Critically, it does not list the > actions anywhere so you might want to use a notepad. > > I document my use here: https://qaz.wtf/qz/blosxom/2020/03/22/new-logos > > For your case something like: > > mkdir pets cars ski-trip > > feh --action1 "mv '%f' pets/" \ > --action2 "mv '%f' cars/" \ > --action3 "mv '%f' ski-trip/" \ > --scale-down \ > --cycle-once *.jpg > This looks very promising. Hopefully I can add a "do nothing" case, too. I'll read up on it. pH > I've been using feh since 1999 or so[*] and find it the most useful image > viewer. Documentation is via man page, `feh --help` will only tell > you "See 'man feh'" > > [*] It has long had a feature to view images specified by URL. It also > has a feature to reload an image after a certain amount of time. I > vividly remember using it to periodically reload the some news > website's (probably CNN) map of states called for Bush or Gore that > fateful Tuesday in November 2000. I just didn't want to keep the > whole webpage open. > > Elijah > ------ > has various "${noun}sort" feh themes