# libgdx - Image artifacts when downscaling image

Why does this border appear around the edges when I downscale a bitmap and how do I avoid it? I tried every filter I know, the results go from bad to worse.

Here's the original bitmap:

• I do not think changing your sampling filter is going to fix this... is this a pre-multiplied alpha image? I suspect you are not properly dealing with that. – Andon M. Coleman Jun 11 '14 at 7:03

I don't know libgdx, but the problem is with your image. There are low opacity, white-ish pixels all around the edges of the Moon (ARGB is around (1, 255, 255, 255))