Dear James,

Thank you very much for your reply. I tried that but i get the following
error

ValueError, unsupported mode, P
I am trying to find a solution, it may be due to multi band image. In the
mean time If you have solution to this problem please reply back.

With Warm Regards,
Bishwarup





On Fri, Oct 16, 2009 at 6:23 PM, James <[email protected]> wrote:

>
> The ImageMath Module should take care of it (works on single-band
> images, which is what it sounds like you've got):
>
> (slight mod of demo)
> import Image, ImageMath
>
> im1 = Image.open("image1.jpg")
> im2 = Image.open("image2.jpg")
>
> out = ImageMath.eval("a + b", a=im1, b=im2)
> out.save("result.png")
>
> james
>
> On Oct 16, 3:32 am, Bishwarup <[email protected]> wrote:
> > Dear All,
> >
> > I am new to PIL and python. I am in the process of developing a plugin
> > for image processing. In this I need to modify each pixel of an image,
> > then combine the images to form a new image. The pixel values of the
> > new image will be summation of the pixel values of all the images at
> > that particular location.
> > Can this be achieved through PIl and python, If yes then how?
> > I am using PIL 1.1.6, python 2.5 and windows
> > Thank you in advance.
> > With Regards
>

Reply via email to