from array to image pil code example Example 1: pil image to numpy >>> pix = numpy.array(pic) Example 2: pillow image from array PIL.Image.fromarray(your_array)