How to remove BG from this spritesheet

so I have this spritesheet and i wanna remove the bg how do i do that

1 Like

Well, I’m not sure whether that would work but there’s https://www.remove.bg/

I wouldn’t say it’s the most precise way but I have no other idea

edit: got this result here, it’s not a good quality unfortunately

you can use some simple programs like Libresprite or photoshop/gimp etc

Hi Sharxxy!

This would probably best not be solved in Godot. The simplest solution would be to use an image manipulation tool (for example Paint, Krita, Gimp) and replace the background color with transparency.

Note that not all image types have transparency. Probably the best format to manipulate sprites is PNG, because it is loss-less. You can also add a transparency channel (aka. alpha channel) to PNG files.

Side note: for every pixel in an image a PNG could have one number of color information (gray scale), three numbers of color information (red-green-blue, color images) or four numbers of color information (red-green-blue + transparency).

You have to use your image manipulation tool for adding a channel for transparency, if you want to use transparency. Then you would have to replace the blue with that transparency.

Another side note: you would also have to make sure not to include any foreground pixels, when selecting the color to turn into transparency. This can be quite complicated, but in the best case the spritesheet’s creator didn’t use a color for the background which also appears in the foreground.

I recommend GIMP, because it is available on Linux, Mac and Windows and it is also free. Here is some instructions on StackOverflow.

Kind regards :four_leaf_clover:

2 Likes

can I use photopea

I think so,you can give it a try

1 Like

yeah it works well using the wand tool

@Sharxxy Don’t forget to mark kraasch’s post as the solution, if that fixed your problem

Edit: @Frozen_Fried also contributed :wink:

3 Likes