Thread View: news.software.readers
3 messages
3 total messages
Started by Dirk Olbertz
Sun, 03 May 1998 00:00
X-Faces
Author: Dirk Olbertz
Date: Sun, 03 May 1998 00:00
Date: Sun, 03 May 1998 00:00
11 lines
785 bytes
785 bytes
Howdy, could you please point me to some technical information about the X-Faces? Thanks, Dirk -- | "The Box said Win95 or better - Now I own the BeOS" |
Re: X-Faces
Author: Curt Welch
Date: Sun, 03 May 1998 00:00
Date: Sun, 03 May 1998 00:00
12 lines
1072 bytes
1072 bytes
Dirk Olbertz <olbertz@do.isst.fhg.de> wrote: > could you please point me to some technical information about the > X-Faces? http://wwwsyseng.anu.edu.au/~jaa/ -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Now Open! ----> Webmaster for http://NewsReader.Com/
Re: X-Faces
Author: Mike Wright
Date: Mon, 04 May 1998 00:00
Date: Mon, 04 May 1998 00:00
61 lines
2791 bytes
2791 bytes
Dirk Olbertz wrote:
>
> Howdy,
>
> could you please point me to some technical information about the X-Faces?
Here's an excerpt from my Z-mail help on how to do an X-face:
You can attach a small picture of yourself to your outgoing mail using
the X-Face header. If the recipient is also using Z-Mail, your face
will show up in the message-reading Window instead of the
letter-and-envelope icon. A few other mail programs also display
X-Faces.
To make your own X-Face, you need an image of yourself and some tools
for manipulating bitmaps. You have to convert the picture to be
black&white and exactly 48x48 pixels in size. Let's run through an
example assuming that you have an image in GIF format and you're using
the freely-available PBMPLUS toolkit:
% giftoppm face.gif | \ # convert to PPM
ppmtopgm | \ # color to grayscale, if necessary
pgmnorm | \ # normalize grayscale contrast
pnmscale -xy 48 48 | \ # scale to at most 48x48
pgmtopbm > face.pbm # convert to PBM
At this point you have an Nx48 or 48xN bitmap, and you have to make it
square. There's no simple pipeline to do this, but here's one way:
% pnmfile face.pbm # look at size
face.pbm: PBM raw, 37 by 48
% bc
(48 - 37) / 2 # compute x offset for paste
5
% pbmmake -white 48 48 | \ # make white background bitmap
pnmpaste face.pbm 5 0 | \ # paste in the face
pbmtoicon | \ # convert to Sun icon format
tail +3 | \ # remove unnecessary header stuff
compface > face.xface # convert to X-Face
This produces a string such as:
,Ds44dHMpgZWe_mQHw>6_G=nh*w!PSv@Pn"}Q4{q}~^Zwt`4_"awA
If the string is more than one line, join the lines and remove blanks.
Replace any single quotes with single double single double single
('"'"'), and then wrap that in a my_hdr command using single quotes:
my_hdr X-Face: ',Ds44dHMpgZWe_mQHw>6_G=nh*w!PSv@Pn"}Q4{q}~^Zwt`4_"awA'
And put it in your ~/.zmailrc!
--
Mike Wright
Remove NOSPAM to reply.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads