How do I get a size of a pictures sides with PIL or any other Python library?
Since scipy's imread is deprecated, use imageio.imread.
scipy
imread
imageio.imread
pip install imageio
height, width, channels = imageio.imread(filepath).shape