[Image-SIG] Is blend broken?

Edward C. Jones edcjones@erols.com
Wed, 05 Aug 1998 04:34:42 -0400


Is Image.blend broken or did I make an error installing PIL?
--------------------------------------------------------
#! /usr/bin/python

import string, Image, zlib

x = Image.open('/home/edcjones/imagedb/dallas1.jpg')
z = Image.blend(x, x, .5)
print z.size
---------------------------------------------------------
Traceback (innermost last):
  File "./test.py", line 6, in ?
    z = Image.blend(x, x, .5)  
  File "/usr/lib/python1.5/site-packages/PIL/Image.py", line 835,
in blend
    return Image()._makeself(core.blend(im1.im, im2.im, alpha))
TypeError: argument 1: expected ImagingCore, None