When I try to execute the program below:
import image
img = image.Image("LutherBellPic.jpg")
print(img.getWidth())
print(img.getHeight())
p = img.getPixel(45, 55)
print(p.getRed(), p.getGreen(), p.getBlue())
I keep receiving the following error:
AttributeError: module 'image' has no attribute 'Image'
Instead of the
cImagepackage, you installed theimagepackage.Hence, you have to uninstall the wrong package, using this command:
and install the correct one, using this command:
Details on each package may be found in the Python Package Index repository.
Ιn brief:
image package:image processing library for the Python-based web frameworkDjango.cImage package:image processing library for Python.