raster (PIL)

superpollo user at example.net
Thu Jul 23 09:16:51 EDT 2009


Peter Otten wrote:
...
> im.convert("1").save(sys.stdout, "PNG")
...

a q about pil:

im.convert("1")

is different from:

im2 = im.convert("1")

right?

in the former im is changed (the method applies to im) but in the latter 
im is unchanged (first im is copied unto im2 and then the method is 
applied to im2)... am i right?

bye



More information about the Python-list mailing list