[Image-SIG] Creating a Transparent Image and Placing it Over Another Image (txt)
Guy K. Kloss
g.kloss at massey.ac.nz
Mon Apr 13 00:32:29 CEST 2009
On Sun, 12 Apr 2009 06:09:52 Wayne Watson wrote:
> import PIL
> import PIL.Image as Image
>
> img=Image.open('white dragon.png')
>
> (By the way, is "import Image" depreciated? it should be.)
There's no value in importing a module and renaming it to the same name.
Your second import statement should look like this:
from PIL import Image
HTH,
Guy
--
Guy K. Kloss
Institute of Information and Mathematical Sciences
Te Kura Pūtaiao o Mōhiohio me Pāngarau
Room 2.63, Quad Block A Building
Massey University, Auckland, Albany
Private Bag 102 904, North Shore Mail Centre
voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181
eMail: G.Kloss at massey.ac.nz http://iims.massey.ac.nz
More information about the Image-SIG
mailing list