# How to cut a texture in a atlas into parts?

**URL:** <https://forum.defold.com/t/how-to-cut-a-texture-in-a-atlas-into-parts/80231>\
**Category:** Questions\
**Created:** [April 8, 2025, 4:39am UTC](https://forum.defold.com/t/how-to-cut-a-texture-in-a-atlas-into-parts/80231 "2025-04-08T04:39:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azeem\_Iqbal](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/azeem_iqbal/32/39024_2.png) [@Azeem\_Iqbal](https://forum.defold.com/u/Azeem_Iqbal)\
**Post date:** [April 8, 2025, 4:39am UTC](https://forum.defold.com/t/how-to-cut-a-texture-in-a-atlas-into-parts/80231/1 "2025-04-08T04:39:41Z")

</div>

Hello,  
I’m working with a 512x512 texture in a atlas and would like to divide it into eight equal 64x64 tiles. After that, I plan to rescale each tile to 96x48 and place them in the same order they were originally cut. My main objective is to manage multiple textures within an atlas, allowing for tile replacement and, eventually, applying auto-tiling with masks for transitional blending.

I’ve been struggling with this for many weeks without success, so I would greatly appreciate any guidance or support. Thank you!

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [April 8, 2025, 8:18am UTC](https://forum.defold.com/t/how-to-cut-a-texture-in-a-atlas-into-parts/80231/2 "2025-04-08T08:18:19Z")

</div>

I’m sorry, but I have problems understanding what you want to achieve. Can you elaborate? Why can’t you just use tilemaps and tilesources? Those are meant for tiles, not atlases. And especially that you are mentioning auto-tiling, it will be easier for you with tilemaps, because you have easy API to get and replace each and single tile.

> **[Defold tile source manual](https://defold.com/manuals/tilesource/)**
>
> This describes how to use and create a tile source.

---

<div class="post-metadata">

**Author:** ![Azeem\_Iqbal](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/azeem_iqbal/32/39024_2.png) [@Azeem\_Iqbal](https://forum.defold.com/u/Azeem_Iqbal)\
**Post date:** [April 9, 2025, 12:13am UTC](https://forum.defold.com/t/how-to-cut-a-texture-in-a-atlas-into-parts/80231/3 "2025-04-09T00:13:11Z")

</div>

Hi! Thanks a lot for replying!  
The thing is, the tilemap only lets me use one tilesource at a time. But I have around 12 different textures, and I’d like to be able to load them simultaneously and choose which one to use for each tile.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [April 9, 2025, 6:57am UTC](https://forum.defold.com/t/how-to-cut-a-texture-in-a-atlas-into-parts/80231/4 "2025-04-09T06:57:46Z")

</div>

You can also try one of the online tools, like [Online sprite sheet cutter / splitter / decompiler](https://ezgif.com/sprite-cutter)

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [April 9, 2025, 7:32am UTC](https://forum.defold.com/t/how-to-cut-a-texture-in-a-atlas-into-parts/80231/5 "2025-04-09T07:32:06Z")

</div>

> [@Azeem\_Iqbal](#):
>
> But I have around 12 different textures,

Is it possible, that you can merge them in a single tilesource? Because, if you want to use all of them, they will be loaded anyway, so it’s not about efficiency I guess, right? Is it about more comfortable workflow? Or is the texture, if merged, too huge? (e.g. I think there are limits on mobile)
