Re: NameError: name 'RGB' is not defined

Edward Cannon <[email protected]> Fri, 21 Dec 2012 16:02:56 -0800
Newsgroups gmane.comp.python.image
Message-ID <CAA=wcUa6P4eY9igPux6aYZCNovaLBkUEEC8aE9K151bEtQ3SpA@mail.gmail.com>
you need to quote the RGB,
Image.new("RGB", (600, 600), (250, 250, 400))

On Tue, Nov 6, 2012 at 11:59 AM, Abha Agrawal <[email protected]> wrote:
> When I run the follwing code:
>
> from PIL import Image
> Image.new(RGB, (600, 600), (250, 250, 400))
>
> it returns
> NameError: name 'RGB' is not defined
>
> Please advise.
>
> _______________________________________________
> Image-SIG maillist  -  [email protected]
> http://mail.python.org/mailman/listinfo/image-sig
>
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig