[Tutor] [tutor]Imagechop error
Varsha Purohit
varsha.purohit at gmail.com
Sun Feb 3 03:45:08 CET 2008
Hello everyone,
I am tryin to use the imagechop module but i am not able to
implement it successfully. I want to compare two images and give the
resultant of the image using difference module. i am tryin to save the
resultant image. But i am getting some wierd error. It gives error in the
line where i have used imagechop.difference and the error is
AttributeError: 'str' object has no attribute 'load' I am unable to
understand what is the problem. Can any one help me understand this
imagechop module ??
import Image
import ImageChops
file1 = "Nearest.jpg"
file2 = "Bilinear.jpg"
diff = ImageChops.difference(file1, file2)
ext = ".jpg"
diff.save("diff" + ext, "JPEG", quality =100)
--
Varsha Purohit,
Graduate Student
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080202/50f9435e/attachment.htm
More information about the Tutor
mailing list