Michael Hoffman wrote:

> Hello. Using PIL 1.1.5, I am trying to do logical ands on bitmap
> images using ImageChops.logical_and. I seem to always get completely
> black images instead, however.

hmm.  this works just fine on windows...

are you running this on unix?

the operations do work, but logical_and sets the output bytes to 1
instead of 255, and the ImagingSavePPM function that's used by the
"show" method on Unix cheats and saves mode "1" images as "PGM"
images without normalizing the values.  that's not very smart.

if you convert the images to mode "L" on the way out, they should look
right.

I'll fix this (both the operator and the save method) in 1.1.6.

</F> 



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

Reply via email to