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  
> arguments
>
> 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  
> down
> the line

Try Image.ANTIALIAS


Python won't 'flood' your namespace with variables unless you  
explicitly ask it to.

-- 
    ("`-/")_.-'"``-._        Chris Cogdon <[EMAIL PROTECTED]>
     . . `; -._    )-;-,_`)
    (v_,)'  _  )`-.\  ``-'
   _.- _..-_/ / ((.'
((,.-'   ((,/   fL

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to