[Image-SIG] Pasting with pixmaps broken in 1.0 final?
Robert Kern
kern@its.caltech.edu
Wed, 17 Nov 1999 14:04:56 -0800 (PST)
The following script works with 1.0b1 on the Starship but does not work as
expected with 1.0 final (either self-compiled or from the Debian package)
on a Debian GNU/Linux (potato) system.
"""
import Image
im = Image.new('RGB', (512,512), (255,0,0))
mask = Image.new('L', (256,256))
data = range(256) * 256
mask.putdata(data)
im.paste((0,255,0), (128,128,384,384), mask)
im.save('test.png')
"""
Under 1.0b1, the image is a square gradient going from red to green on a
red background. Under 1.0 final, the image has the left half of the
gradient the same as previous, but the right half is a solid light blue,
no gradient at all.
Something in ImagingFill2 perhaps?
Note that the same thing happens when one uses the 'draw_bitmap' method of
the underlying ImagingCore object (c.f. ImageDraw.Draw.text()).
--
Robert Kern
kern@caltech.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter