I have a pretty simple code file:
from PIL import Image til = Image.new("RGB",(50,50)) im = Image.open("tile.png")
However, when I try to start it, I get the following error:
Traceback (most recent call last): til.paste(im) File "C:\Python27\lib\site-packages\PIL\Image.py", line 1340, in paste self.im.paste(im, box) ValueError: images do not match
What causes this error? These are both RGB images, documents do not say anything about this error.
python python-imaging-library pillow
user1796160
source share