[Gimp-user] Exporting .gif files corrupts color information.


Here's the problem I'm facing, there is no short description though:

I'm attempting to edit gif files which contain graphics used in Civilization 2
game. That's a 1996 game and it is highly customizable and as you can imagine,
highly outdated.

What worked before the days of windows 10/8/7 was just using the MS paint.
However, at some point, that application started to completely mess up the
colors. So I moved to GIMP and all was well, for a while. I stopped making new
game scenarios but recently wanted to start again.

However, upon changing anything in the file and exporting it, when I load the
game, a certain color used for borders between units and/or terrain types is
evidently not correctly saved and it shows up in the game, while it should not.

What normally happens is the game recognizes that particular color used in gif
files and does not show it during the gameplay, since it's only used to depict
said borders for the purpose of editing the graphic representations of various

The worst part is that that I don't even touch the parts of the image that use
this color. Just exporting the file immediately upon opening it is enough.

I have attached the "before" and "after" files.
Beyond compare shows the same RGB values for all colors.
Size between files differs - 183 bytes appear to be missing so obviously some
information is lost after exporting.
The color in question is the grey background - value 135 for all three RGB

I said this already but this wasn't always the case - I used to be able to edit
these same files with GIMP many years ago and exported them without issues.

Also, when I export the file as BMP, which is also an acceptable format for the
game engine, the issue does not exist, UNLESS I touch any of the gray color, in
which case, the result is the same. Editing anything else seems to work fine
with BMPs.

For comparison, I used PSP trial version and it allowed me to freely edit any of
the colors and there were zero issues upon exporting the end result.

I have messed around with the vast plethora of preferences and options in GIMP
but I am far from being an expert and so far there has been no improvement. I
suppose the problem lies with some additional information that should be
exported with the file but is not. I can't be certain though.

Could somebody take a look at the problem I'm facing?
I would be very grateful. I really like GIMP since for the basic and casual
needs that I have, I've managed to learn all the stuff that I need and I'd hate
to switch to another application just because of, what I think, is a small

Thanks in advance for your time and let me know if there's anything else I could
provide to help resolve this.

* https://www.gimpusers.com/system/attachments/1080/original/terrain1_before_exporting.gif
* https://www.gimpusers.com/system/attachments/1081/original/terrain1_after_exporting.gif
* https://www.gimpusers.com/system/attachments/1082/original/in-game_before.jpg
* https://www.gimpusers.com/system/attachments/1083/original/in-game_after.jpg

Blasphemous (via www.gimpusers.com/forums)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]