how to convert jpegimagefile to numpy array code example Example: pil image to numpy >>> pix = numpy.array(pic)