Repack an uneven tileset grid
Import the packed grid in Tiled
Keep the downloaded PNG and TSX in the same folder. In Tiled, add the TSX as an external tileset. Tile IDs run left to right, then down, including transparent cells.
When replacing a source image in an existing tileset, compare its column count and first and last tiles before saving your map. The TSX export describes the new image and contains no terrain, animation or collision definitions.
Prepare a PNG with different horizontal and vertical tile gaps
A tile can be 16 by 16 pixels even when its neighbors start 18 pixels to the right. The start offset is the distance to the first tile. The gap is the distance from the end of one tile to the start of the next.
Count tile pixels before gap pixels. For a 16-pixel tile with an 18-pixel stride, put 16 in Width and 2 in Across. Putting 18 in Width includes the gap as part of each tile.
Read the worked example
Set the tile size
Enter the original width and height of a single tile, excluding any gap.
Align the boundaries
Set the left and top starts independently. Use Across and Down for gaps between adjacent tiles.
Pack and compare
Check the first and last tiles and the reported number of columns and rows.
Keep the exports together
Download the PNG and TSX to the same folder. In Tiled, add the TSX as an external tileset.
Read the worked example