I have successfully sliced an individual image. Now I would like to have #this code to do every .jpg be sliced in a directory.
Here is my python code for slicing the individual images:
from PIL import Image
import os
image1=Image.open('banana.jpg')
import image_slicer
image_slicer.slice('banana.jpg', 60)
I have several images of fruit I would like to slice into smaller images #within this folder that are all the same size.