Re: merge two png pic

2009-08-06 Thread Xavier Ho
On Thu, Aug 6, 2009 at 12:17 PM, cocobear wrote: > > I want to view image use Windows Pic View. > > If you run out of memory trying to combining those images into a 30k by 40k pixels image, the Windows Pic View isn't going to be able to display it either. Regards, Ching-Yun "Xavier" Ho, Technic

Re: merge two png pic

2009-08-05 Thread cocobear
On Aug 5, 3:44 pm, News123 wrote: > You didn't really tell us why you need one big file, which contains more > pixel, than you can probably store in RAM > In fact I do not need such a big image. I just want to know the solution. > Is it for printing? > Not knwoing your goal makes it difficult t

Re: merge two png pic

2009-08-05 Thread News123
You didn't really tell us why you need one big file, which contains more pixel, than you can probably store in RAM Is it for printing? Not knwoing your goal makes it difficult to suggest solutions. Can't you use other image formats like raw RGB or What other image formats are supported? tiff? Ra

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.convert("L", optimize=True, palette=Image.ADAPTIVE) > > >> > >> But if thetwopngpicis too big , or if I have t

Re: merge two png pic

2009-08-04 Thread Xavier Ho
Strange, I did reply but you didn't see it? > > >> >>> Image.new("RGB",(44544,38656)) > >> > >> What do you want to do with such a big image? You will run into the same > >> limitation when you are trying to display it. > >> > > > > I want to download a map from google map with high precision

Re: merge two png pic

2009-08-04 Thread News123
Hi, cocobear wrote: >> > >> Map = Image.new("RGB", (x,y)) >> > >> Map.paste(im, box) >> > >> Map.paste(im1,box) > >> > >> Map = Map.convert("L", optimize=True, palette=Image.ADAPTIVE) > >> > >> But if thetwopngpicis too big , or if I have tomergemorepic >> > >> together, I will get MemoryError: >

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 > >> 'P' > >> >>> im.getpalette == im1.getpalette > > >> False > > >> I can use this code tome

Re: merge two png pic

2009-07-30 Thread Peter Otten
cocobear wrote: > 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 tomergetwopngpictogether: >> >> Map = Image.new("RGB", (x,y)) >> Map.paste(im,

Re: merge two png pic

2009-07-30 Thread Terry Reedy
cocobear wrote: 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 tomergetwopngpictogether: Map = Image.new("RGB", (x,y)) Map.paste(im, box) Map.paste(im1,box) Map = Map.convert("

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 tomergetwopngpictogether: > > Map = Image.new("RGB", (x,y)) > Map.paste(im, box) > Map.paste(im1,box) > > Ma

Re: merge two png pic

2009-07-28 Thread Xavier Ho
On Wed, Jul 29, 2009 at 11:20 AM, cocobear wrote: > > >>> Image.new("RGB",(44544,38656)) > Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1710, in > new >return Image()._new(core.fill(mode, size, color)) > MemoryError

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