9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Ethan A. Gardener" <eekee57@fastmail.fm>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] I prefer cropping images in Plan 9
Date: Sat, 21 Jul 2018 14:19:03 +0100	[thread overview]
Message-ID: <1532179143.3742505.1448197440.4A02E3CA@webmail.messagingengine.com> (raw)

I just had to crop a bunch of images in the Gimp, and recalled how much I prefer doing it in Plan 9; it's so much less frustrating. In the Gimp, it's either a matter of estimating numbers (for a quick, casual job on visual media), or select, copy, paste into new window. In the latter case, when you save it, you have to find the directory and the file8749832710473name; not fun. Also, I'm not practised at this; I'm no good at cropping with my brain, so I had to zoom, resize the window, and select very carefully so selecting didn't move the image in the window.

In Plan 9, which isn't even made for the job, it's not without its frustrations, but it's got fewer of them than the Gimp. Open the image in page; use the plumber or otherwise enter the full path so you can copy/paste it later. Zoom and adjust the window as you like. In another window, grep for the filename (or the directory, or whatever,) in /dev/wsys/*/label, and type cd and send the directory part. (Of course, copy/paste or send the file name.) Then:
    crop -i 4 window | topng > path/filename.png
This is the part where you'll likely want to copy the full original path. That's one done. On to the next image, which presumably is open in the same instance of page so you don't have to cd or anything. `cat label` to get its full name and path. (It's possible only 9front's page puts the path in the label, I don't know.)

It's an operating system with few pretensions and only clunky image editing tools, versus a powerful two-decade-mature image editing suite. Loading and saving the files is no worse in Plan 9 than it is in the Gimp with its oh-so-modern file selector, and the actual cropping part is easier in Plan 9!


If anyone's waiting for news of my OS where everything is done from an interpreter prompt, I got distracted for a while but I'm on it again now. I'm staying with Forth but looking at alternatives to swap drop and roll -- I mean stack manipulation primitives. Not to start a discussion here, but I've decided it will have a single tree of names for all permanent storage despite supporting architectures without a filesystem. Disk blocks could be a directory of numbers under /b0, /b1 etc. OFW's non-volatile environment variables could be a single-level directory under /nv. Actual local filesystems, including the host's, could go under /f. Perhaps other resources could go in the same tree as virtual files, but I'm not building that bridge until I see the river. It's off topic for this list, so perhaps mail replies to me privately?

Any suggestions for a mailing list provider? My primary requirement is low maintenance. I see many projects use Google Groups, but would like suggestions for others if you have them.

--
The lyf so short, the craft so long to lerne. -- Chaucer



             reply	other threads:[~2018-07-21 13:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-21 13:19 Ethan A. Gardener [this message]
2018-07-21 15:20 ` Ryan Gonzalez
2018-07-21 16:17   ` hiro
2018-07-22  9:42     ` Ethan A. Gardener
2018-07-22  9:27   ` Ethan A. Gardener
2018-07-22 11:24   ` Ethan A. Gardener
2018-07-23  3:55   ` Lucio De Re
2018-07-23  7:19     ` hiro
2018-07-24  0:25       ` Steve Simon
2018-07-24  7:46         ` hiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1532179143.3742505.1448197440.4A02E3CA@webmail.messagingengine.com \
    --to=eekee57@fastmail.fm \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).