Article View: news.software.readers
Article #204327Re: [slrn] How do I view an X-Face with slrn in Linux term? - Working now!
From: Ohmster
Date: Tue, 21 Aug 2007 06:48
Date: Tue, 21 Aug 2007 06:48
114 lines
6970 bytes
6970 bytes
Troy Piggins <usenet-0708@piggo.com> wrote in news:20070821095023@usenet.piggo.com: [..] >> Here is the same post after hitting the "-" key. I changed my >> activate key to the minus key as slrn did not seem to be using it for >> anything else. http://www.ohmster.com/~ohmster/picture/snap027.jpg > > Excellent! Glad you got it working. > >> Yours don't look that bad in ASCII art, mine looks like crap though, >> see here: >> http://www.ohmster.com/~ohmster/picture/snap025.jpg > > Yours has too much detail/grayscale for the ascii to handle. B&W > only would look fine. Well, here is what it looks like in a "regular newsreader" as a small icon, the way it was made to be viewed: http://www.ohmster.com/~ohmster/picture/snap029.jpg The reason it has so much "grayscale" like that is the dithering, an X-Face is really just a very tiny 2 color image, black & white. Mine was made from an actual photo of me and my girlfriend at my aunt's swimming pool. I cropped the image to just large enough to show my face, then took the color pallet down to a 1 bit color. When you use an image editing program to reduce the pallet to 1 bit color, you get the choice of color reduction method. To either reduce to the nearest color, "closer to black or closer to white", this process can be "weighted" or "non-weighted". Weighted tends to make the image "blacker" overall than non-weighted does. You can also choose to use "ordered dither" which is a lot like a newspaper image, or 3 choices of error diffusion, all three of which create a much "cleaner" black and white image with finer points of detail. None of this is actually "grayscalling" because with grayscale, you actually get many shades of gray. With 1 bit color, you get black and you get white and that is it. Period. When I did my X-Face, I used error diffusion to get all of that "grayscale" in there. Now that I think about it, I should have just used "Nearest Order, Non-Weighted" and that probably would have been a better choice. That would have given me a very much pure black and pure white image, yet you would still be able to recognize me as to who I was. Ahhh, we learn as we go on, you know. Here is what it would look like as a "Nearest Order, Non-Weighted" picture, all ready to create an X-Face from: http://www.ohmster.com/~ohmster/picture/ohmsterBWface.gif Blinky's X-Face lends itself to black and white a little better than mine though and Sinner's too because they are more like icons than the actual photo that mine was made from. Here is what Blinky's X-Face looks like in a regular newsreader: http://www.ohmster.com/~ohmster/picture/snap031.jpg >> So yeah, it does work without X11 although it does not look as good >> as it does with some kind of image viewer. Now I am going to try it >> on the Linux box itself in xwindows in a term and see if the graphics >> get any better. > > The "graphics" are just characters, so it won't look any better > IMO. They really are not just characters, they really are tiny 1 bit color images. >> The only viewer I have that this "Troy Thing" supports is xv, >> which is shareware, unregistered. I wish he could have gotten >> it to work with gqview, that is my favorite. Well, off to the >> Linux box to try it out but yes, it does work. > > There is no "Troy Thing" :-) As I said on my page, the xli/xv > stuff is in the view-x-face script credited to Roland Rosenfeld. > > I have a confession to make. I have only just looked up what the > hell xli, xv, and gqview are. They appear to just be image > viewers. I don't know gqview's commandline options, but can you > pass it images from stdin? If so, that's all you need. Just > change the VIEWER variable accordingly. > I just finally installed xli on my computer but for some reason it did not work. When I called up the X-Face. I lost control of the slrn program because xli was giving me some kind of a dialog box underneath and was not producing the X-Face. Oh let me do it again and see what that error was... ...oh it works now! All dithered and MUCH better than the ASCII art! Oh here is what happened. When the term window is small, xli will open the X- Face in a nice tiny window on the side of the term. When the term window is full screen, you get a dialog box over slrn tha says "[X-Face:] stdin is a 48x48 RawBits PBM image Default gamma is arbitrary for bitmap Using DirectColor visual" slrn now says on it's command line "Press anyh key to close the window". But pressing any key does not do shit and the dialog box does not go away. You have to keep the term window small enough to show the xli graphic on the side so that you can click on it to give it focus and then pressing any key will make it go away. xli does work and it works quite well, much better than ASCII art, but it has this quirk, just cannot use slrn in a full screen term window and view an X-Face with it or else you will not see the face underneath the term window and will not have any control over it. Oh I see how it works now. Pretty neat anyway, nice small, regular X-Face graphic with xli is what you get. Just that it has to sit in it's own window is all. Cool! Heh, Sinner and Blinky look cool like that. Mine looks really good too. Alright, all is working just like you said Troy. Thanks for showing this to me. I got what I wanted. Cheers! -- ~Ohmster * ohmster /a/t/ ohmster dot com Put "messageforohmster" in message body (That is Message Body, not Subject!) to pass my spam filter.
Technical Details
Message-ID:
<Xns99931C8D840DFMyBigKitty@194.177.96.26>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!novso.com!news.newsland.it!aioe.org!not-for-mailReferences:
<slrnfcgp9v.ofb.ohmster@ohmster.com> <20070820065518@usenet.piggo.com> <ja4np4xdeg.ln2@news.gates-of-hell.com> <slrnfck9jq.l0p.ohmster@ohmster.com> <20070821095023@usenet.piggo.com>Show Full Headers
Complete Article Headers
Message-ID: <Xns99931C8D840DFMyBigKitty@194.177.96.26>
Subject: Re: [slrn] How do I view an X-Face with slrn in Linux term? - Working now!
Date: Tue, 21 Aug 2007 06:48:49 +0000
From: Ohmster <nowayin@hell.com>
References: <slrnfcgp9v.ofb.ohmster@ohmster.com> <20070820065518@usenet.piggo.com> <ja4np4xdeg.ln2@news.gates-of-hell.com> <slrnfck9jq.l0p.ohmster@ohmster.com> <20070821095023@usenet.piggo.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!novso.com!news.newsland.it!aioe.org!not-for-mail
Newsgroups: news.software.readers
Organization: Ohm's Fish Market
Lines: 114
NNTP-Posting-Host: O/RjhamsI9EKzsYUTMrueA.user.aioe.org
X-Complaints-To: abuse@aioe.org
User-Agent: Xnews/2006.08.24
X-Face: .XlXp$frDJgk"+lb;
#RRo7mu{1=_.HV?RtB}%$JLN.!>>|\CPyQIi3/aBRW#(.dd8zlF9N]k8{xh03zVf=zG1G6{.bb%H8Vs%|7l'1YWAw+A)x'S"-}(Y`#ZN`#04OktRpU*!NdugZh(o%w5K,?/WqZ(qWs}K)Req:&D'|lkj%*a[N0bMk^Tr<PY{Sz6YcFm'[*2fkS/RV>}L.;
=6evum0C,LE}%s@g; ]-DhWu4J"DbcJ*+fIo,l8cH@ZxF|dm~; Vg;
XxV@K!Wp|SV+3HPyIOS,Z'j]jz]i=/5*!J&hVOQ[