# Misaligned Tileset - Do I need to edit source image?

**URL:** <https://discourse.mapeditor.org/t/misaligned-tileset-do-i-need-to-edit-source-image/5691>\
**Category:** Questions\
**Created:** [July 5, 2022, 12:17pm UTC](https://discourse.mapeditor.org/t/misaligned-tileset-do-i-need-to-edit-source-image/5691 "2022-07-05T12:17:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TripleM333](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@TripleM333](https://discourse.mapeditor.org/u/TripleM333)\
**Post date:** [July 5, 2022, 12:17pm UTC](https://discourse.mapeditor.org/t/misaligned-tileset-do-i-need-to-edit-source-image/5691/1 "2022-07-05T12:17:46Z")

</div>

I’m having real issues trying to get my tiles aligned on my tileset 🫠  
Here’s my tileset below  
 ![gun-man - stock tileset](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/a/aee75fa7734055ccba7c08b13873831bed128fc2.png)  
I’ve tried adding a 1px margin and 1px spacing as well as a 2px spacing. I’ve tried taking the outside border off the original image. I could remove the borders from the source image completely but I wanted to avoid that just yet.  
Can I not add borders to the source image? Cos that would make things kinda awkward/tricky every time I want to generate a tileset or am I missing something obvious?  
This is what I get when adding my tileset, all the variations I’ve tried so far (mentioned above) produce the same kind of misalignment problem

 ![misalignment](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/c/c130c501d447ec126d52a86c31144d8bf8801651.png)

---

<div class="post-metadata">

**Author:** ![eishiya](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/eishiya/32/2534_2.png) [@eishiya](https://discourse.mapeditor.org/u/eishiya)\
**Post date:** [July 6, 2022, 4:29am UTC](https://discourse.mapeditor.org/t/misaligned-tileset-do-i-need-to-edit-source-image/5691/2 "2022-07-06T04:29:31Z")

</div>

This tileset works perfectly well with 32x32px tiles, 1px margins, 1px spacing. Perhaps you had the margins and spacing right, but got the wrong tile size?

---

<div class="post-metadata">

**Author:** ![TripleM333](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@TripleM333](https://discourse.mapeditor.org/u/TripleM333)\
**Post date:** [July 19, 2022, 5:30pm UTC](https://discourse.mapeditor.org/t/misaligned-tileset-do-i-need-to-edit-source-image/5691/3 "2022-07-19T17:30:29Z")

</div>

I found the issue, sorry for reply. For some reason, having transparent colour on and editing the margins/spacings properties in the property box corrected it. I did have the right specs initially, it was strange!
