Re: merge two png pic

2009-08-05 Thread cocobear
age > in RAM. > > Perhaps there's even converters from ppm to png, that don't need the > whole image in RAM. > > > > cocobear wrote: > > On Aug 4, 3:24 pm, News123 wrote: > >> Hi, > > >> cocobear wrote: > >>>>>&g

Re: merge two png pic

2009-08-04 Thread cocobear
On Aug 4, 3:24 pm, News123 wrote: > Hi, > > > > > > cocobear wrote: > >> > >> Map = Image.new("RGB", (x,y)) > >> > >> Map.paste(im, box) > >> > >> Map.paste(im1,box) > > >> > >> Map = Map.co

Re: merge two png pic

2009-08-03 Thread cocobear
On Jul 31, 2:52 pm, Peter Otten <__pete...@web.de> wrote: > cocobear wrote: > > On Jul 29, 9:20 am, cocobear wrote: > >> Thistwopngfile has their own palette > > >> >>> im1.mode > >> 'P' > >> >>> im.mode > &g

Re: merge two png pic

2009-07-30 Thread cocobear
On Jul 29, 9:20 am, cocobear wrote: > Thistwopngfile has their own palette > > >>> im1.mode > 'P' > >>> im.mode > 'P' > >>> im.getpalette == im1.getpalette > > False > > I can use this code tomergetwopngpictoge

merge two png pic

2009-07-28 Thread cocobear
This two png file has their own palette >>> im1.mode 'P' >>> im.mode 'P' >>> im.getpalette == im1.getpalette False I can use this code to merge two png pic together: Map = Image.new("RGB", (x,y)) Map.paste(im, box) Map.paste(im1,box) Map = Map.convert("L", optimize=True, palette=Image.ADAPTIVE)

Re: about bsddb module

2008-05-03 Thread cocobear
On 5月3日, 下午7时17分, cocobear <[EMAIL PROTECTED]> wrote: > How to deal with multiple databases in an file. I want to get the > content of several databases. > > it's the code I wrote: > > [EMAIL PROTECTED] ~]$ python > Python 2.5.1 (r251:54863, Oct 30 2007, 13:54:11

about bsddb module

2008-05-03 Thread cocobear
How to deal with multiple databases in an file. I want to get the content of several databases. it's the code I wrote: [EMAIL PROTECTED] ~]$ python Python 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2 Type "help", "copyright", "credits" or "license" f