convert in place, all black to transparent
mogrify -transparent black *horizontal mirroring
mogrify -flop *.pngvertical mirroring
mogrify -flip *.pngappend to image horizontally (left to right)
convert +append *.png out_01.pngand vertically (top to bottom)
convert -append out_01.png out_02.png out_03.png tilemap.pngthis is useful for texture atlas, last argument is output