On Thu, 28 Sep 2006 10:44:53 -0400
JoeHill got an infinite number of monkeys to type out:

> Now, getting Claws to load the right kind of image/info is another story. I
> still cannot figure out how to get an .xface file or a XBM file for Claws to
> load, the docs are very confusing...er, for me ;)
> 
> Something about converting your image to a 'base64' encoded...thing.

Sorry, just woke up when I wrote that.

Anyway, this is what I tried...

The gif2xface.pl script from here:

http://www.sylpheed-claws.net/tools.php

After installing about 20 packages to get this to even run, it ended up giving
me an error:

[EMAIL PROTECTED] sylpheed-claws-gif2xface]$ ./gif2xface.pl <
~/sylpheed/cheface.gif > cheface.xface pbmtoxbm: bad magic number - not a pbm
file

...and an empty xface file.

I also tried using djpeg and makeface.php, which Charles links to, but djpeg
is only the first step. You run it and it gives you a png, but then when I
run the suggested shell script to get the base64 encoding:

[EMAIL PROTECTED] ~]$ makeface cheface.png cheface.xface
Trying quantization 16 (cheface.png)...Not a JPEG file: starts with 0x89 0x50
ppmnorm: Error reading magic number from Netpbm image stream.  Most often, this
means your input file is empty. pnmscale: Error reading magic number from
Netpbm image stream.  Most often, this means your input file is
empty. /home/joehill/bin/makeface: line 22: mimencode: command not found
pnmcolormap: Error reading magic number from Netpbm image stream.  Most often,
this means your input file is empty. pnmcolormap failed, rc=256 pnmtopng: Error
reading magic number from Netpbm image stream.  Most often, this means your
input file is empty. done

Soooo, I fired up Gimp and saved it as a jpg, then ran the script again:

[EMAIL PROTECTED] ~]$ makeface cheface.jpg cheface.xface
Trying quantization 16 (cheface.jpg).../home/joehill/bin/makeface: line 22:
mimencode: command not found ppmnorm: remapping 0..255 to 0..255
pnmcolormap: making histogram...
pnmcolormap: 117 colors found
pnmcolormap: choosing 16 colors...
pnmremap: 16 colors found in colormap
pnmtopng: 16 colors found
done

AAaaaaarrrrrggggghhhh! At that point I gave up (it was freakin' 3 AM), and I
have yet to check on where you get this mimencode.

All this for a little 48x48 image that most people won't even see...I got a
serious problem ;)

-- 
JoeHill / RLU #282046
///////////////////////////
"People should not be afraid of their Government, the Government should be
afraid of the People." -- V.
____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to