3 $USAGE = "xface2xpm [-t] [-fg <color>] [-bg <color>] [<file>]";
6 # ftp://metalab.unc.edu/pub/Linux/apps/graphics/convert/
7 $UNCOMPFACE = "uncompface";
35 # s/^X-Face://i if ($xf eq "");
54 while(s/0x(..)(..)//) {
55 push(@bm, hex($1), hex($2));
62 $H = @bm * 8 / $W; # must be 48
66 /* columns rows colors chars-per-pixel */
77 print ((($x >> (8-$i)) & 1) ? "." : " ");
80 print (@bm ? "\",\n" : "\"\n");
89 print STDERR "$USAGE\n";