I get the following error when I attempt to put a 300-pixel gray
border around a 640x480 image:
% pildriver.py show resize 640 480 pop paste open /tmp/snap.png 300 300 dup new
1240 1080 128 verbose 1
Stack: ['128']
Stack: ['1080', '128']
Stack: ['1240', '1080', '128']
Stack: ['new', '1240', '1080', '128']
Stack: ['dup', <Image.Image instance at 0x83260>]
Stack: ['300', <Image.Image instance at 0x83260>, <Image.Image instance at
0x83260>]
Stack: ['300', '300', <Image.Image instance at 0x83260>, <Image.Image instance
at 0x83260>]
Stack: ['/tmp/snap.png', '300', '300', <Image.Image instance at 0x83260>,
<Image.Image instance at 0x83260>]
Stack: ['open', '/tmp/snap.png', '300', '300', <Image.Image instance at
0x83260>, <Image.Image instance at 0x83260>]
Stack: ['paste', <PngImagePlugin.PngImageFile instance at 0xc8bc0>, '300',
'300', <Image.Image instance at 0x83260>, <Image.Image instance at 0x83260>]
Stack: ['pop', None, <Image.Image instance at 0x83260>]
Stack: ['480', <Image.Image instance at 0x83260>]
Stack: ['640', '480', <Image.Image instance at 0x83260>]
Stack: ['resize', '640', '480', <Image.Image instance at 0x83260>]
Traceback (most recent call last):
File "/usr/local/bin/pildriver.py", line 507, in ?
driver.execute(sys.argv[1:])
File "/usr/local/bin/pildriver.py", line 493, in execute
func()
File "/usr/local/bin/pildriver.py", line 264, in do_resize
self.push(image.resize(xsize, ysize))
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/PIL/Image.py",
line 1186, in resize
raise ValueError("unknown resampling filter")
ValueError: unknown resampling filter
%
This is PIL 1.1.5 with Python 2.3.5.
Bill
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig