Trouble with changing generator eye colors

So I tried to do something that, on paper, seems pretty simple. In practice it's apparently... not. I'm not at all good at much of anything related to using Gimp (or just visual arts in general), so I'm probably just missing something obvious, but I cannot figure out how to word this problem in a google search, and haven't gotten anything helpful that way.

In the world of one of my game ideas, there's a race of people who have black, instead of white, sclera. Other than that, their eyes look like human eyes. So, I thought I could just change the color of the "backing" part of the eye parts in the generator to black and dark gray and presto. To try this out, I picked Female Eyes 9 (MZ), which looks like this:
1651381652291.png

and after changing the color in Gimp and importing the results back into the generator, I ended up with this:
1651382722646.png

See how the "shape" lines above the eyes themselves got all screwed up? When using the color select tool in Gimp, I definitely did NOT have those lines selected. Only the white and grayish sections making up the sclera were selected. So I really have no idea why parts outside the selection are being changed in some way, so that they look all weird once imported back into the generator. The edges around the eye also look way more rough/jagged in my edit compared to the original, so I may just be out of my depth here - as I said I'm terrible at this kind of stuff, haha.

Any advice on this is appreciated!
Could you show a screenshot of what it looks like after you've changed it in GIMP, but before you import it into RPGM?
Yep, can do:
1651385798645.png

That's what it looks like on the actual editing screen while still working on it. First I tried just selecting the white/gray sclera parts and color changing them, and doing nothing else. The second time, I selected them, copied them to a new layer, THEN changed the color to black/dark gray only on that layer, and exported it. Both times had the same result.

Here's something interesting - I didn't think to do this before, but I just opened (in Gimp) the actual .png file that I get from exporting it out of Gimp after making the changes, and that looks like this:
1651385943482.png


You can clearly see how it's much more "roughed up" here vs. the in-editor screenshot. So SOMETHING is going wrong with the export, I guess? But I have no idea what.
So, general thing:

MZ tries reducing the file size by indexing the file (means: limiting the color count to a max of 255), but since indexed files usually don't have an alpha channel (means: transparent parts of the image), they combined it with a layer mask (means: a grayscale image that tells the engine which part is displayed with which opacity) and GIMP cannot handle that.

Open your file in paint.net (which is free) before editing and copy it over to GIMP then and you should be good to go.
So, general thing:

MZ tries reducing the file size by indexing the file (means: limiting the color count to a max of 255), but since indexed files usually don't have an alpha channel (means: transparent parts of the image), they combined it with a layer mask (means: a grayscale image that tells the engine which part is displayed with which opacity) and GIMP cannot handle that.

Open your file in paint.net (which is free) before editing and copy it over to GIMP then and you should be good to go.
Now that is very interesting. I certainly wouldn't have stumbled upon this solution on my own, haha. Thanks! A couple follow-up questions...

So this is an "MZ" thing (and, presumably, MV as well)? And not just a "generator" thing, as in, this would apply to anything I was trying to edit? I've made a number of tileset edits in Gimp and haven't had any issues, but is that because in that case, all I'm doing is cutting and pasting things along a square grid? I'm not doing anything like changing colors within Gimp.

But for anything else - not just generator parts, but also if I DID want to do something like change colors in a tileset, or a character portrait, or a windowskin... I should be aware of this issue.

Re: open in paint.net then copy to Gimp - if I am following you, you mean to open the file in paint.net and then - without making any actual modifications - immediately export the file as a .png from paint.net then open THAT file in Gimp? Or do you mean literally "copy" as in use the select and copy functions in paint.net and then paste in an empty canvas in Gimp?
EDIT: okay so I got back to my computer and had a chance to download paint.net and try this for myself - the former option, opening in in PN then immediately saving it as a .png then opening that file in Gimp for editing - seems to work. I took eyes 9 through that process, and when I imported the finished product back into the generator, I got this:
1651440427675.png

MUCH better. So that seems to work! Thank you very much for the help. If you happen to see this reply and clarify my other follow-up questions (e.g. should I be doing this pretty much EVERY time I want to edit resources, no matter what kind), that'd be great... but to be honest, I think I will just start doing that extra step of running it through paint.net any time I'm going to try to edit anything, just to be safe, lol.

Original thread: https://forums.rpgmakerweb.com/threads/trouble-with-changing-generator-eye-colors.147216/