[Tutor] [tutor]Imagechop error
alan.gauld at btinternet.com
Sun Feb 3 09:04:45 CET 2008
"Varsha Purohit" <varsha.purohit at gmail.com> wrote
> AttributeError: 'str' object has no attribute 'load' I am unable
> understand what is the problem. Can any one help me understand this
> imagechop module ??
When posting errors don't just post the last line. Post the whole
error message since the stacv trace often contains the most
> file1 = "Nearest.jpg"
> file2 = "Bilinear.jpg"
> diff = ImageChops.difference(file1, file2)
You are passing file names not files so it may be that
you need to pass file objects? But I don't know because
I've bnever used ImageChops
More information about the Tutor