0
\$\begingroup\$

I drew a pixel art tree using GIMP. My problem is, how can I cut out the white background, because if I want to build a tile map with it, in my case with tiled, it always has the white background with it.

I know you can cut it manually, but I want to know whether there is an easier way.

\$\endgroup\$
3
\$\begingroup\$

You need to right click the layer and select "Add Alpha Channel"

Then you can do one of 2 things...

  1. Use the "Fuzzy Select Tool" to select the white color (you can adjust the tolerance to select more or less of it) and delete the area.

  2. Go to "colors > color to alpha" select white and hit okay.

\$\endgroup\$
  • \$\begingroup\$ I can not recommend "color to alpha" in this case, because it makes everything transparent depending on the similarity of the selected color. So you will end up with a sprite where some pixels are not 100% opaque. \$\endgroup\$ – Philipp Feb 25 '18 at 17:17
  • \$\begingroup\$ That's true. There are more complicated techniques, but usually a mix works well. Fuzzy select the white, expand the selection by 1 or 2px, then color to alpha the selection. \$\endgroup\$ – Kyy13 Feb 26 '18 at 5:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.