According to the GraphicsMagick man page I can create multiple tiles from an image by using -crop
without an offset:
If the x and y offsets are omitted, a set of tiles of the specified geometry, covering the entire input image, is generated. The rightmost tiles and the bottom tiles are smaller if the specified geometry extends beyond the dimensions of the input image.
So I ran the following commands (under Linux):
gm convert -crop 256x256 input.png tile # => a single file called tile
gm convert -crop 256x256 input.png tile.png # => a single file called tile.png
How do I specify an output so that multiple images are created?