(SOLVED) Problem with png file when importing them in gimp (weird color artifacts)

So I'm trying to edit a bit the MZ portraits, but every time I import them in Gimp they lose their sharpness (the edge becomes more pixelated, like there's no anti-aliasing) and sometimes there are artifacts. Here's a example:

1610593814282.png


Anyone has any idea why this is happening?
Two things come to mind that could potentially be the problem...

1) the original picture is a vector image and Gimp is pixel based and the image is to small to convert without creating the result ing artifice

2) it's a monitor thing (monitors use pixels to display not vector) so with certain size/zoomed pictures there will always be a pixellation effect occuring. This can be tested by printing the image from gimp to see if its remains oixellated or not.

Or it could be something else entirely but then I dunno either xD
II don't think it's a monitor issue, because the original file works perfectly when I display it inside the game, but the second picture has like anti-aliasing issues (it's like there's no AA and you can see the pixelated edges).

What's a vector image, and how to know if a png is a vector image?
the original file works perfectly when I display it inside the game, but the second picture has like anti-aliasing issues
Yeah but not at that size/zoom im bettting.

Vector is non pixel based lines and pixel are pixels xD
Illustrator for instance is a vector based program

Edit : (Just found this on internet)
First, look at filetype. JPG, PNG, TIFF literally cannot be vector. Supposing the file has changed type beforehand, and you want to see if at any point in the past it was vectorised; look for wonky, surprisingly high-quality lines. The automatic vectorization filters will remove pixelation and most artifacts, but are bad at accurately depicting corners or complex shapes. Also pay attention to gradients or natural fades between colors, as vectorisation will usually simplify the transition into noticeable chunks of color. Conversely, if there is a gradient (usually added manually), it will be smoother and less textured than that of a photograph. Overall, look for super-sharp edges, gooey angles, and simple colors; if all of the above, something that was raster was at some point touched by vector.

So png is always pixel based/raster however it couldve been vector based before. Gimp is to my knowledge also pixel based so converting it back messes up the line work mostly (as that appears to be vector based at some point judging by the cleanliness of the lines) it seems.
That's my best guess anyway
I'm pretty sure it has to do with the fact the images are Indexed color instead of rgb, quite a few art programs seem to have issues when it comes to that. There was a thread that talked about it and had a workaround I think but I can't seem to find it again.
I'm pretty sure it has to do with the fact the images are Indexed color instead of rgb, quite a few art programs seem to have issues when it comes to that. There was a thread that talked about it and had a workaround I think but I can't seem to find it again.
Oh yeah, that could also be very well the issue (facepalm).
So I'm trying to edit a bit the MZ portraits, but every time I import them in Gimp they lose their sharpness (the edge becomes more pixelated, like there's no anti-aliasing) and sometimes there are artifacts. Here's a example:

View attachment 175550

Anyone has any idea why this is happening?

You're in Indexed color mode. Change the color space to RGB.

It's not a monitor or a vector to raster issue. Vector images don't produce artifacts like that when rasterized.
Update, I've just tested something. So if I just use the original file from the RPG Maker MZ folder, it works perfectly in-game. This is with the original file:
1610595434364.png


Now, I've just opened the file in gimp, just exported the image from GIMP, and now here is how it looks in-game (check the edge around her hair, you'll noticed it's not as smooth as the first image):
1610595897469.png


The 2 files, although the same resolution, have different size (29.5 KB for the original and 28.5 KB for the gimp edited one).

EDIT: I changed to RGB mode and the problem still persists.
So the only reason I own GIMP is to convert Indexed RPG Maker stuff to RGB because for some reason Photoshop won't do it right.

I had that weird 'all the solid black vanishes' thing happen to character sprites and tiles ( the Trinity DLC ) when I was converting them to RGB in GIMP, but only if I'd had GIMP open for a while. What worked for me was - ridiculously enough - closing GIMP down and then opening it again, then it would open the files properly.

The other thing that would mess me up was when exporting my RGB images to .png, if I forgot to uncheck the 'save background colour' option. Unchecking that seemed to straighten things out for me.
So the only reason I own GIMP is to convert Indexed RPG Maker stuff to RGB because for some reason Photoshop won't do it right.

I had that weird 'all the solid black vanishes' thing happen to character sprites and tiles ( the Trinity DLC ) when I was converting them to RGB in GIMP, but only if I'd had GIMP open for a while. What worked for me was - ridiculously enough - closing GIMP down and then opening it again, then it would open the files properly.

The other thing that would mess me up was when exporting my RGB images to .png, if I forgot to uncheck the 'save background colour' option. Unchecking that seemed to straighten things out for me.
Nice! I've closed GIMP and reopened it and it seems to have fixed the artifact problem. However, the lost smoothness issue still persist, even if I uncheck the save background color option.
Ah GIMP, i've had issues with it before. I once had to edit images to retain there quality for importing into RPG Maker 2003.

One thing I would suggest trying is selecting image, then mode then set to indexed.
Glad I could get you half-way at least. 😉
You're getting jagged edges because you're still working with an image file in the Indexed color space.
Finally solved the issue! The artifact problem and the lost of smoothness are 2 different issues. The artifact problem seems to have fixed itself just by closing gimp and reopening it. The smoothness issue was fixed by changing the color mode to rgb instead of index mode. In gimp, go in the Image tab -> Mode -> RBG. This should fix the issue.

Thank you everyone!

Original thread: https://forums.rpgmakerweb.com/threads/solved-problem-with-png-file-when-importing-them-in-gimp-weird-color-artifacts.132198/