Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.os.linux.misc > #69606

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

From Eli the Bearded <*@eli.users.panix.com>
Newsgroups comp.os.linux.misc
Subject Re: Program to dole out jpg's to subdirctories, card-dealing style.
Date 2025-07-16 06:18 +0000
Organization Some absurd concept
Message-ID <eli$2507160218@qaz.wtf> (permalink)
References <103a6c8$qvlb$1@dont-email.me> <1056ac4$20042$1@dont-email.me> <eli$2507151925@qaz.wtf> <10579s5$hu40$9@dont-email.me>

Show all headers | View raw


In comp.os.linux.misc, Lawrence D'Oliveiro  <ldo@nz.invalid> wrote:
> On Tue, 15 Jul 2025 23:25:05 -0000 (UTC), Eli the Bearded wrote:
> > ... only went back to xv for fast cropping (open, crop, save, and
> > quit is faster than gnu imp chugging through all the plugins during
> > startup.)
> Just timed the startup of GIMP 3.0.4 on my main machine. Took 3 seconds.

Not too bad, I think gnu imp has improved start-up time. But xv is pretty
fast. If you use the keyboard shortcuts instead of the GUI buttons to
start the crop action and then save the file and quit, you only need
the mouse to draw the rectangle.

Flow goes:

	xv /tmp/filename.foo
	c <drag rectangle> <ctrl-s> <enter><enter><enter> q

One enter is to accept the image save options. Then double enter is to
exit the filename box and confirm overwriting. This is suitable for the
sorts of things I usually want a fast crop for.

I'd time it now, but I haven't used it in a few years and libraries
on my system have changed:

$ xv
xv: error while loading shared libraries: libtiff.so.5: cannot open
shared object file: No such file or directory
$ 

(It is installed in ~/bin/ which is how it survived the OS upgrades.
The timestamp says I compiled it in 2016.)

Last time I timed it[*], just for opening and quitting (not editing), I
got these numbers:

time gimp --no-data --no-splash -f /tmp/pyramid.jpg -b '(gimp-quit 0)'
real    0m3.95s

time xv /tmp/pyramid.jpg
real    0m2.04s

time feh /tmp/pyramid.jpg
real    0m0.10s

$ identify /tmp/pyramid.jpg
/tmp/pyramid.jpg JPEG 344x324 344x324+0+0 8-bit DirectClass 47.6KB 0.000u 0:00.000

You can see one of the reasons I like feh for viewing images.

[*] That was December 2016. I do not recall which 2.x version of gnu imp
    I had, and my notes (= old Usenet posts) don't say. I did run strace
    to count system calls:

    $ strace -o /tmp/feh.strace feh /tmp/pyramid.jpg
    $ strace -o /tmp/xv.strace xv /tmp/pyramid.jpg
    $ strace -o /tmp/gimp.strace gimp --no-data --no-splash \
	-f /tmp/pyramid.jpg -b '(gimp-quit 0)'
    $ wc -l /tmp/*.strace
        1067 /tmp/feh.strace
      151202 /tmp/gimp.strace
       49195 /tmp/xv.strace
      201464 total

Elijah
------
can't find the pyramid image today, but it was in /tmp/ so...

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Program to dole out jpg's to subdirctories, card-dealing style. Dan Espen <dan1espen@gmail.com> - 2025-07-14 16:57 -0400
  Re: Program to dole out jpg's to subdirctories, card-dealing style. Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-07-15 07:48 +0200
    Re: Program to dole out jpg's to subdirctories, card-dealing style. Nuno Silva <nunojsilva@invalid.invalid> - 2025-07-15 08:35 +0100
      Re: Program to dole out jpg's to subdirctories, card-dealing style. Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-07-15 07:44 +0000
        Re: Program to dole out jpg's to subdirctories, card-dealing style. Borax Man <boraxman@geidiprime.nospam> - 2025-07-16 10:46 +0000
      Re: Program to dole out jpg's to subdirctories, card-dealing style. Richard Kettlewell <invalid@invalid.invalid> - 2025-07-15 11:47 +0100
        Re: Program to dole out jpg's to subdirctories, card-dealing style. Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-07-16 04:27 +0000
    Re: Program to dole out jpg's to subdirctories, card-dealing style. jayjwa <jayjwa@atr2.ath.cx.invalid> - 2025-07-15 10:24 -0400
    Re: Program to dole out jpg's to subdirctories, card-dealing style. Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-07-15 16:35 +0000
      Re: Program to dole out jpg's to subdirctories, card-dealing style. Rich <rich@example.invalid> - 2025-07-19 15:35 +0000
    Re: Program to dole out jpg's to subdirctories, card-dealing style. John McCue <jmclnx@gmail.com.invalid> - 2025-07-15 19:32 +0000
      Re: Program to dole out jpg's to subdirctories, card-dealing style. Eli the Bearded <*@eli.users.panix.com> - 2025-07-15 23:25 +0000
        Re: Program to dole out jpg's to subdirctories, card-dealing style. Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-07-16 04:29 +0000
          Re: Program to dole out jpg's to subdirctories, card-dealing style. Eli the Bearded <*@eli.users.panix.com> - 2025-07-16 06:18 +0000
        Re: Program to dole out jpg's to subdirctories, card-dealing style. Rich <rich@example.invalid> - 2025-07-19 15:41 +0000
    Re: Program to dole out jpg's to subdirctories, card-dealing style. Robert Riches <spamtrap42@jacob21819.net> - 2025-07-16 03:04 +0000
    Re: Program to dole out jpg's to subdirctories, card-dealing style. Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-07-19 13:09 +0000
      Re: Program to dole out jpg's to subdirctories, card-dealing style. Richard Kettlewell <invalid@invalid.invalid> - 2025-07-19 15:02 +0100
  Re: Program to dole out jpg's to subdirctories, card-dealing style. candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-07-15 19:10 +0000
    Re: Program to dole out jpg's to subdirctories, card-dealing style. Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-07-15 22:33 +0000
      Re: Program to dole out jpg's to subdirctories, card-dealing style. candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-07-16 17:20 +0000
    Re: Program to dole out jpg's to subdirctories, card-dealing style. Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-07-16 04:27 +0000
    Re: Program to dole out jpg's to subdirctories, card-dealing style. "Carlos E.R." <robin_listas@es.invalid> - 2025-07-16 11:19 +0200
      Re: Program to dole out jpg's to subdirctories, card-dealing style. Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-07-16 15:53 +0000
        Re: Program to dole out jpg's to subdirctories, card-dealing style. candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-07-16 19:20 +0000
    Re: Program to dole out jpg's to subdirctories, card-dealing style. Borax Man <boraxman@geidiprime.nospam> - 2025-07-16 10:38 +0000

csiph-web