With ImageMagick package (image manipulation library) installed on a Linux machine, it is possible to split a huge image file into smaller tiles with such kind of command:
convert -crop $WIDTHx$HEIGHT@ huge_file.png tile_%d.png
With the following parameters.
- $WIDTH, the width of each tile splitted
- $HEIGHT, the height of each tile splitted
Here is an example to split a file into tiles of size 16x32 pixels:
convert -crop 16x32@ huge_file.png tile_%d.png