[Image-SIG] NameError: name 'RGB' is not defined

Abha Agrawal abha.n.agrawal at gmail.com
Tue Nov 6 20:59:04 CET 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20121106/80682cc2/attachment-0001.html>


More information about the Image-SIG mailing list