twmap-edit
. among others less relevant options, there are:
--remove-everything-unused
: removes unused images, sounds, layers, groups, envelopes--shrink-tiles-layers
: scales down all tiles layers to remove any obselete air/other tiles from the border$edit --remove-everything-unused --shrink-tiles-layers
with any amount of options. (if you would use the command line tool, you would do nearly the same,twmap-edit --remove-everything-unused --rotate path-to-input-map path-to-output-map
)
$optimize
is only a shortcut to do $edit --remove-everything-unused --shrink-tiles-layers
$edit --help
in any testing channel (the output is a bit big so maybe do that in #🎉caterpillar3)--shrink-tiles-layers
is: in all 4 directions, detect how many rows are duplicates at the border. then, remove those duplicates, but leave at least a 2x2 tilemap, shrinking the right and bottom border is prioritized (edited)