cape shutdown + cool logo + nvram

Steve M. Gehlbach steve at nexpath.com
Sun Feb 2 23:01:01 CET 2003


> > are there particular restrictions on the image properties? width/height,
> > bit depth...?
> >
> > bye
> > thank you
> > as
>
> The logo file is a pcx file, indexed color (256 colors) 640 x400, depth
> 8bits.  I created it with gimp, but I need to try and remember
> how.  The one
> thing I remember is that only the first 16 entries in the palette
> are used.

I looked into this a little further and I guess I should have made some
notes.  But it appears that the file was created with Adobe Photoshop rather
than gimp, but I don't recall exactly why.  At any rate, the decoding is
setup to use a palette of 256, but with only 16 colors used since there are
only 4 bit planes for this graphics mode.  However, there appears to be a
difference of opinion about which end of the palette to use, Photoshop uses
the upper end, and gimp appears to use the lower end (when converted to 16
colors).  I wrote the code to use the upper end of the palette (Photoshop).
I think the code should work with either, so either gimp or Photoshop could
be used.  I'll try to put the changes in the code in the next few days.

In gimp, the menu is image->mode->indexed and then set the palette to 16
colors.  Then save the file as .pcx.  This won't display until I fix the
code, though.  For now, you can load the result into Photoshop, convert to
RGB, then convert back to index color (select custom palette), and save it,
and this should display.

The .pcx file standard is at http://www.whisqu.se/per/docs/graphics57.htm.


-Steve




More information about the coreboot mailing list