how to mix 100+ pictures with python pillow -
Now I try to mix 100+ pictures with a picture (like .png) pillow (kanka pil) I am doing
and I know "PIL.Eases Blend (IM1, IM2, Alpha)" can fix all the pictures, though the color of the picture was very light.
I want to cure 100+ pictures with color , not transparency (alpha).
I know there is another API for fix "PIL.image.cospace (image 1, image2, mask)" but while using it, it was wrong to say something
"Im = Image.composite (P, IM," RGBA ")" #What am I using right?
p and im API "PIL.Image.open (fp, mode = 'r')"
Two open image objects open by file "GA_engine .po ", line 187, test_create in im = Image.composite (P, IM," RGBA ") file" / library / Python 2/7 / site-package / PIL / IDEAS ", line 2313, in the overall image. Paste (Image 1, None, Mask) file "/ Library / Python 2/7 / Site-Package / PIL / Eyes", line 1313, mask in paste. Load () attribute: Error: The 'str' object does not have any attribute 'loaded', what does that mean with 'ok' pictures, it is not very clear, but it looks like you somehow try to combine them I can not say that if you are using the right tool because I do not know what you are trying to fulfill, but I can say that you are not using the device correctly : If you read, you will see that Image.composite
is required, as the third argument, the second image to use as a transparency mask.
Then in place of "RGBA", you need to supply another image object of the same size as the other two. What is the answer to your question?
Comments
Post a Comment