Derive tileset from map?

I am looking to take a map and derive the tiles used to a Tiled tileset or an image.

Tiled can interpret any image as a tileset, but this will have many duplicate tiles in the tileset. Basically I just want a way to automatically delete the duplicate 16x16 pixel tiles. Say you used 12 identical forests - they don’t need to show up on the tileset 12 times.

If anyone knows a way to do this or what I should look into, any advice would be appreciated. Thanks!

You can try this tool:

Seems to work pretty well on a couple of examples tilemaps I gave it.

1 Like

Thank you very much! I will try it out when I have the chance.