In [3]:
from PIL import Image
img = Image.open("slice-vertically.png")
img
Out[3]:
In [5]:
from PIL import Image
img = Image.open("slice-horizontally.png")
img
Out[5]: