I am currently using the Pil library for a project, however i keep running into the same problem which will not let me do anything at all.
def bw_negative(filename):
# Create the handle and then create a list of pixels.
image = Image.open(filename)
pixels = list(image.getdata())
print pixels[0]
print pixels[1]
I have imported the PIL library into the task but i keep getting the same eror stating: "NameError: global name 'Image' is not defined"
I cant find how to fix this any help?