import image_slicer image_slicer.slice('image.png', 25)
Another script
Whith this one you will be asked to choose an image to split and then you will enter the number of rows (equal to the column).
import image_slicer from tkinter import filedialog fname = filedialog.askopenfilename(initialdir = ".",title = "Select file",filetypes = (("png","*.png"),("all files","*.*"))) print("Input the number of row that must be equal to the number of column") rows = int(input("how many rows? > ")) image_slicer.slice(fname, rows) print("done")