How do I remove white outline around my sprite?

Bug, suggestion, ça se passe par ici !
Ne concerne que ce qui touche au logiciel en lui même.

Modérateur : Modérateurs

Règles du forum
:idea: Forum d'aide au fonctionnement de PhotoFiltre et de PhotoFiltre Studio.
:idea: Merci de consulter la documentation de PF Studio, et de lire cette information, pour vous orienter.
Si vous êtes débutant, voir Comment me lancer. Votre question a peut-être déjà sa réponse.
pearl84

How do I remove white outline around my sprite?

Message 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!
Dernière modification par pearl84 le 04 mai 2019 13:49, modifié 1 fois.
Antonio
Administrateur(trice)|Administrateur|Administratrice
Administrateur(trice)|Administrateur|Administratrice
Messages : 12731
Inscription : 28 oct. 2003 22:49
Contact :

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

Message 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 ?
TinyAlien
Nouveau(elle)|Nouveau|Nouvelle
Nouveau(elle)|Nouveau|Nouvelle
Messages : 14
Inscription : 06 déc. 2018 8:08
Version de PhotoFiltre : 7.2.1
Système d'exploitation : Windows 7
Processeur : Pentium D
Mémoire RAM : 3Gb

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

Message 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.
Répondre