I have the following code to normilize pixel values of an image in the range 0-1.
# Import simpsons = Image.open("simps.png") simpsons_pixels = np.a