I need to know how to convert GIF to HEX formatted so 52259 can display image as a web server.
The example software that came with it has this kind of hex image file structure.
static const unsigned char data_header_gif[] = {
/* /header.gif */
0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0xde, 0x03, 0x32, 00,
0xb3, 00, 00, 0x99, 0x98, 0x98, 0xf9, 0xf7, 0xf6, 0xc4,
0xca, 0xcb, 0x62, 0x60, 0x60, 0xf6, 0x98, 0x69, 0x20, 0x1c,
ect. . .
I found a free program that can convert a GIF file to a hex file, but it lists the hex in one long sting of numbers like below:
64F0B245AE48A2DD67301A4437C60809C651EA862A3BF31D3584B5225C0E32F26A ect. . . and nearly to infinity.
What ways are available to convert from the GIF file to a formatted HEX file?
Thanks
> 64F0B245AE48A2DD67301A4437C60809C651EA862A3BF31D3584B5225C0E32F26A
Why can't you write a simple parser of that hex chunk yourself then? You should be able to do it in less than 30 minutes.
I did not have much luck finding a GIF convertor. There are a lot of BMP-to-hex convetors, though. It should be easy enough to use any paint program to change the GIF to a BMP. This link has the source code for BMP to hex, so you can modify the program to generate the output the way you need it.