[Image-SIG] ValueError: images do not match

Fredrik Lundh fredrik@pythonware.com
Thu, 6 Jun 2002 18:38:58 +0200

Neeraj Kahal wrote:

> I am getting "ValueError: images do not match" while
> trying to paste an image. 
> How can it throw an exception when I am pasting an
> image onto a box by calculating the size of the box
> from the size of the image ? Any suggestions please.

check the mode attributes for the source and target image.

> In which file in the lib does it throw "ValueError: images
> do not match" exception?

libImaging/Paste.c (look for calls to ImagingError_Mismatch)