how to get properties of an image in python using pil code example Example: pillow image from array PIL.Image.fromarray(your_array)