Using the SDL_Image library, I am using a colorkey with some images, but whenever I resize the image, or change it's file type, many of the border pixels are randomly colored into different shades of the original color. This creates an ugly border that is clearly visible.
So far, I have had to make do with going through the image and manually recoloring those pixels one by one. Is there an easier way to do this with programming? For example, is there a way to set a whole range of colors to the colorkey?
I did try image editors like Gimp, but all the select by color tools I have found are not accurate enough to only remove the unwanted pixels. If someone could point me to a tool designed especially for this that would also work.