You can use whatever image processing library you like to do the splits. Here is the first SO answer I saw when I googled for it: https://stackoverflow.com/questions/5953373/how-to-split-image-into-multiple-pieces-in-python 99