From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200204111519.g3BFJKe26792@copernicus.cs.utwente.nl> To: 9fans@cse.psu.edu Subject: Re: [9fans] how to create (convert) face? In-reply-to: Your message of "Mon, 08 Apr 2002 13:43:33 -0400." <67039df3086b14eb4fdf37a180c12b43@plan9.bell-labs.com> References: <67039df3086b14eb4fdf37a180c12b43@plan9.bell-labs.com> From: Axel Belinfante Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 11 Apr 2002 17:19:20 +0200 Topicbox-Message-UUID: 7603915e-eaca-11e9-9e20-41e7f4b1d025 > I don't know why gif -c produced a 16-bit image, but iconv will handle > the conversion. If it's a greyscale image, use iconv -c k4 to get a > 4-bit image. If it's color, use iconv -c m8 to get an 8-bit > colormapped image. Reason: the image contains a 'transparency' index that is converted to an alpha channel (this is documented in gif(1)). The image produced starts with: m8a8 0 0 48 48 . I think the real info is, in my case here, in the transparency index -- the image itself is just completely black, which confused me when I extracted that part using iconv -c m8. iconv -c a8 seems to give (sort of) the result I'm after. (and again, I'm posting just before leaving for home -- more (the face) tomorrow -- sorry.) Axel.