Page 1 sur 1

How do I remove white outline around my sprite?

Publié : 03 mai 2019 13:15
par pearl84
I'm making a simple HTML5 game.

I had a sprite. I removed the background from this sprite using the "transparent background" option in Photofiltre. I do not have any other photo editing software.

I managed to remove the background from the sprite. Unfortunately, my sprite has a whitish outline around the figure. This outline is especially noticeable when my sprite is placed over dark backgrounds on the web page. white border around sprite [no_advertising]

I was wondering how other people deal with this problem?Thanks!

Re: How do I remove white outline around my sprite?

Publié : 03 mai 2019 19:44
par Antonio
when you erase the background, did you disabled Selection antialiasing ?

what is trnsparency depth ? 8 bits, 24 bits or 32 bits ?

can you post a sample ?

Re: How do I remove white outline around my sprite?

Publié : 05 mai 2019 11:14
par TinyAlien
One trick you can try is to first select the layer with the sprite on it.
Then in the menu select Selection, then select layer. You should now have a highlighted selection around the sprite also called marching ants.
Then click Selection again then select Contract, then choose a width, if you are not sure just choose 1 pixel. Then press ctrl+I to invert the selection, then click delete on your keyboard. This should remove a 1 pixel outline around the sprite. You can do this any number of times. If you made a mistake simply undo or press ctrl+z to undo.