RM2k3: "Unsupported PNG image"

I keep getting the following error message on images I've converted to a 256-color palette with GIMP: "Unsupported PNG Image! Make sure you are using a color depth of 8 bit (256 colors)." Only thing is, I'm only getting this particular error on images I know are indexed with 256 colors or less. I've found references to this error message online, but the answers always go something like "either it's the wrong size or it's not in 256-color mode." Well, that doesn't help me here because neither of these are the case. What's weirder is, I'll use GIMP's 'generate optimum palette' feature to convert an image to 256-color mod and have it work just fine, but then I'll convert back to RGB, make some edits, and then generate a 256-color palette again, and then it gives me that error. I've managed to get around this in the past with some finagling (changing directories, importing backup files, pasting my work into separate images, etc.) but whatever I did to get it to work before, I can't get it to import the charset I'm working on at the moment. Any idea what could cause this?

EDIT: As a little experiment, I just added rainbow gradients in an unused part of the image to ensure that the optimum palette is exactly 256 colors and no less. Obviously, that's not going to work as a permanent solution, but it does, reveal an important piece of information: the error seems to arise from the color palette being under, and not equal to, 256 colors.

It appears that what I need is a way to losslessly convert it to a palette of exactly 256 colors.
Good old vintage RPG Makers. I was having the exact problem with RPG Maker 2000, and with some help, found a functional but inelegant solution. After clicking Image > Mode > "Indexed..." and setting the maximum palette to 256 colors, go to the Colormap pane and click the "+" at the bottom ("add current foreground color") as many times as it takes to get 256 colors in the palette, then export to PNG. Hope that helps.
Thanks for this solution! I didn't think I'd get a reply after the long wait. 🙂
I know this is an older post, but if you get a program called Graphics Gale, Just go to IMAGE > COLOR DEPTH > and select 256 from the drop down menu. It will automatically create a 256 color palette without all the hassle.
I know this is an older post, but if you get a program called Graphics Gale, Just go to IMAGE > COLOR DEPTH > and select 256 from the drop down menu. It will automatically create a 256 color palette without all the hassle.
Thanks, man! I was hoping there'd be an elegant solution.
Go to a paint program and Save As 256 bit BMP image, should work then

Original thread: https://forums.rpgmakerweb.com/threads/rm2k3-unsupported-png-image.42038/