[Image-SIG] possible PIL bug?
chris at cogdon.org
Thu Oct 20 06:09:02 CEST 2005
On Oct 19, 2005, at 9:02 PM, Dmitry (Dima) Strakovsky wrote:
> Here is a possible PIL bug. I appologise in advance if I am doing
> something silly python-wise.
> When using resize method and using BILINEAR, BICUBIC or NEAREST
> For example: ImageName.resize((200,300),ANTIALIAS)
> interpreter tells me that the global name "ANTIALIAS" is not defined
> the globals are definately defined in image.py Shouldn't they be
> imported as a part of
> "import Image" routine?
> Anyways, entering numeric values: ImageName.resize((200,300),1)
> obviously solves the problem, but makes things a bit harder to read
> the line
Python won't 'flood' your namespace with variables unless you
explicitly ask it to.
("`-/")_.-'"``-._ Chris Cogdon <chris at cogdon.org>
. . `; -._ )-;-,_`)
(v_,)' _ )`-.\ ``-'
_.- _..-_/ / ((.'
((,.-' ((,/ fL
More information about the Image-SIG