# How to Convert an image to NumPy array and saveit to CSV file using Python # import required librariesfrom PIL import Imageimport numpy as gfg# read an imageimg = Image.open('geeksforgeeks.jpg')# convert image object into arrayimageToMatrice = gfg.asarray(img)# printing shape of imageprint(imageToMatrice.shape)