# Texture Management in Defold

**URL:** <https://forum.defold.com/t/texture-management-in-defold/8921>\
**Category:** The Defoldmine\
**Created:** [June 3, 2017, 3:36pm UTC](https://forum.defold.com/t/texture-management-in-defold/8921 "2017-06-03T15:36:22Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![Jerakin](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jerakin/32/3997_2.png) [@Jerakin](https://forum.defold.com/u/Jerakin)\
**Post date:** [December 17, 2018, 3:54pm UTC](https://forum.defold.com/t/texture-management-in-defold/8921/16 "2018-12-17T15:54:24Z")

</div>

A lot of people are a bit confused about what the different atlas properties does so here is an explination.

* * *

### Our atlas without any properties

 ![04](https://forum-defold.b-cdn.net/uploads/default/original/2X/1/1fceb4a050ddce0a1c88aed0eec7977430177ecf.png)

# Margin

Adds a _margin_ to your images by moving them appart from each other.

 ![59](https://forum-defold.b-cdn.net/uploads/default/original/2X/9/930240a94fb8c25d24cd9b33f1f536730907dbc1.png)  
_The bounding boxes of our images are the same size but there is now a small gap between the images._

# Inner Padding

Adds a padding _inside_ of your image bounding box, effectively making the sprite bigger.

 ![25](https://forum-defold.b-cdn.net/uploads/default/original/2X/4/4976fa931fa8ccad61a5b68c20d2ad8818e12f6c.png)  
_Notice that the bounding boxes of the sprites are still touching but there is a lot of transparent pixels between the images._

Please not that this _changes_ your sprites sizes. Meaning that if your little dude normally looks like this

 ![33](https://forum-defold.b-cdn.net/uploads/default/original/2X/b/bcbe974e2ff2938fc1601e02598531d03f33c7db.png)

With some margin added the sprits gets separated and he suddenly looks like this

 ![26](https://forum-defold.b-cdn.net/uploads/default/original/2X/6/6aa0afd535f36250e4f7ebe6b2363b6e5e81383d.png)

# Extrude Borders

Samples the pixel that is at the border of the sprite and _extrudes_ it out.

 ![06](https://forum-defold.b-cdn.net/uploads/default/original/2X/c/c8d70a1069eb19f30327bc7716db6172f055539c.png)  
_You can clearly see that it is extruding the pixels at the border._

---

_[View the full topic](https://forum.defold.com/t/texture-management-in-defold/8921)._
