In my AIcons library (Anthonys X Window Icon Library)
http://www.sct.gu.edu.au/~anthony/icons/
support scripts area
http://www.sct.gu.edu.au/~anthony/icons/support/scripts/
I have a Shell script using the PBMplus or NetPbm Image Tools to
convert from the variable X bitmap format to the pbmplus bitmap
format for easier conversion.
=======8<--------CUT HERE----------axes/crowbars permitted---------------
#!/bin/sh
#
# xbm2face
# convert an X11 bitmap to a Blit ikon bitmap, and then to a face
# compressed bitmap for use in the mail X-Face header. Requires some
# bitmap filters from the pbmplus package, and the compface program
# from the faces package.
#
# Anthony Thyssen 17 Dec 1993 anthony@cit.gu.edu.au
#
xbmtopbm "$@" | pbmtoicon |
sed -e 1,2d -e '$s/$/,/' |
tr -d '\011\012' | tr ',' '\012' |
pr -l1 -t -w22 -3 -s, |
sed -e 's/$/,/' -e 's/\(0x....\)\(0x....\)\(0x....\),/\1,\2,\3,/' |
compface
=======8<--------CUT HERE----------axes/crowbars permitted---------------
Anthony Thyssen ( System Programmer ) http://www.sct.gu.edu.au/~anthony/
-------------------------------------------------------------------------------
A novice practices until he gets it right.
An expert practices until he doesn't get it wrong.
-------------------------------------------------------------------------------
PGP Public Key available -- finger -l anthony@lyrch.cit.gu.edu.au