getting an array from an image pil code example Example: pillow image from array PIL.Image.fromarray(your_array)