# Help Adding Padding

**URL:** <https://discourse.mapeditor.org/t/help-adding-padding/3442>\
**Category:** Questions\
**Created:** [September 20, 2018, 8:06pm UTC](https://discourse.mapeditor.org/t/help-adding-padding/3442 "2018-09-20T20:06:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sparta93821](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sparta93821](https://discourse.mapeditor.org/u/Sparta93821)\
**Post date:** [September 20, 2018, 8:06pm UTC](https://discourse.mapeditor.org/t/help-adding-padding/3442/1 "2018-09-20T20:06:41Z")

</div>

Due to lines around the edges of some of the tiles on my map, I have determined that I need to add padding. I am using a premade tileset, so I only have the actual image of it. Some other topics have mentioned a python gimp script helping them, add padding to an image but all links to the download didn’t work. If any can help me, I will be very appreciative as I have struggled for quite a while getting this to work. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Sparta93821](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sparta93821](https://discourse.mapeditor.org/u/Sparta93821)\
**Post date:** [September 20, 2018, 11:02pm UTC](https://discourse.mapeditor.org/t/help-adding-padding/3442/2 "2018-09-20T23:02:15Z")

</div>

If it helps, this is the tileset I am using. ![RPGtileset](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/mapeditor/original/2X/e/e281cd508be91ba77f3a7163280a3ae84dd2039e.jpeg)

---

<div class="post-metadata">

**Author:** ![Modanung](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/modanung/32/3100_2.png) [@Modanung](https://discourse.mapeditor.org/u/Modanung)\
**Post date:** [September 21, 2018, 6:08pm UTC](https://discourse.mapeditor.org/t/help-adding-padding/3442/3 "2018-09-21T18:08:05Z")

</div>

Instead of adding space between tiles, could using _nearest_ filter mode for your tile texture maybe solve your problem? How to do this depends on the engine you’re using.

---

<div class="post-metadata">

**Author:** ![Sparta93821](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sparta93821](https://discourse.mapeditor.org/u/Sparta93821)\
**Post date:** [September 22, 2018, 2:45am UTC](https://discourse.mapeditor.org/t/help-adding-padding/3442/4 "2018-09-22T02:45:29Z")

</div>

I am using this for a Unity RPG I am making.

---

<div class="post-metadata">

**Author:** ![Modanung](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/modanung/32/3100_2.png) [@Modanung](https://discourse.mapeditor.org/u/Modanung)\
**Post date:** [September 22, 2018, 6:42am UTC](https://discourse.mapeditor.org/t/help-adding-padding/3442/5 "2018-09-22T06:42:14Z")

</div>

In Unity the texture filtering mode you would be looking for is called _Point_. 🐕  
It is a property of the texture that can be set in the _inspector_.

---

<div class="post-metadata">

**Author:** ![Sparta93821](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sparta93821](https://discourse.mapeditor.org/u/Sparta93821)\
**Post date:** [September 23, 2018, 2:23am UTC](https://discourse.mapeditor.org/t/help-adding-padding/3442/6 "2018-09-23T02:23:05Z")

</div>

This combined with a tiny bit of photoshop (some tiles had weird borderings) got rid of the lines. They were driving me crazy. Thanks a lot!
