gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

News > Tool: pcx2gba-linux release 1

#5997 - krom - Wed May 14, 2003 9:39 pm

GreenGianT has made a tool named pcx2gba-linux:

I have just released pcx2gba-linux. This is a simple pcx to gba
converter for Linux with C source code. It is modelled on Dovoto's
programs from www.thepernproject.com. I got tired of running Dovoto's
tools using Wine so I wrote my own for Linux.

pcx2gba-linux creates C headers suitable for mode 4 graphics and sprites
from 8, 4 or 1 bit PCX images. There is an optional parameter to
specify the variable name prefix.


You can download the program pcx2gba-linux with source code from his
website at the following url: www.stalemeat.net/pcx2gba.html

#7066 - bitshifter - Sat Jun 07, 2003 8:39 pm

GreenGianT's pcx2gba-linux tool segfaults when I attempt to convert a .pcx image created in The Gimp. Any ideas why? Or how to fix it?

Thanks

#7073 - tepples - Sun Jun 08, 2003 12:33 am

Some paint programs such as GIMP may not write PCX color palettes correctly. The standard is 128-byte header (which contains a 16-color palette), RLE data, byte '0x0c', 768-byte palette. GIMP just assumes that any 8-bit image will have the 768-byte palette at the end, and it doesn't write the '0x0c' flag byte that some tools look for. GraphicConverter on the Mac platform once had the same problem (and still may; I haven't used it since 1998 or so).

If you're using GIMP as your primary paint program, I'd suggest using a BMP-based conversion tool rather than a PCX-based conversion tool. I haven't had GIMP write a bad BMP yet.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.