# SpriteDX - Manual Compositing

Just writing down the steps to manually matte background for the sprite images.

Prerequisite:

* Adobe Photoshop
    

Sample Sprite

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761330061336/8b97077a-0d85-43fa-a8d7-8553649cb0fa.png align="center")

Steps

1. Open the frame
    
2. Select &gt; Subject
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761330105959/d17cbcfc-e9be-42dd-b4d2-11e628c1f87f.png align="center")
    
3. Channels → `[+]` then `Delete`
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761330185751/6e84bfaf-84cb-4d21-ac18-f23a20805e4c.png align="center")
    
4. Duplicate the channel
    
5. On the copy, Level
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761330515794/da864d58-7b79-4664-9329-ddf74ce6be57.png align="center")
    
6. Select the mask, and it should look roughly:  
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761330596682/bfaf95f2-1baa-4c80-998e-d1a545d64e77.png align="center")
    
7. Select Inverse, then Filter → Other → Minimum
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761330733017/99809f02-e7a6-43b4-9fb3-3437cf974af8.png align="center")
    
8. Then go back to the original mask in Channels tab, Select, then create a layer mask.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761330866142/0961a251-fd19-4f80-b180-617bf10f3de1.png align="center")
    
9. If you add a background, composite should look fine.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1761330942997/2bd2e475-a651-400a-80ca-1d49c8bd1c1b.png align="center")
    

---

That’s it.

— Sprited Dev 🌱
