From nicolasg at vtrip.net Tue Jan 3 00:52:38 2006 From: nicolasg at vtrip.net (Nicolas Georgakopoulos) Date: Tue, 03 Jan 2006 01:52:38 +0200 Subject: [Image-SIG] does any one have the stego.py module ? Message-ID: <43B9BCC6.6030906@vtrip.net> Hi , I'm planning to write a program for steganography applications. Searching google I found about this program that can hide text inside images using PIL. The author page is on line but the file stego.py does not exist. If any one have this file please send it to me... it will help me on my research. thanks and happy new year :) From phr-2005 at nightsong.com Tue Jan 3 14:00:25 2006 From: phr-2005 at nightsong.com (Paul Rubin) Date: 3 Jan 2006 13:00:25 -0000 Subject: [Image-SIG] apparent typo in pilfont doc Message-ID: <20060103130025.11286.qmail@brouhaha.com> http://www.pythonware.com/library/pil/handbook/pilfont.htm I think "pdf" is supposed to say "pcf". If not, an explanation is needed. From calmasy at gmail.com Thu Jan 5 20:49:17 2006 From: calmasy at gmail.com (=?ISO-8859-1?Q?Count_L=E1szl=F3_de_Alm=E1sy?=) Date: Thu, 5 Jan 2006 12:49:17 -0700 Subject: [Image-SIG] PIL resize with aspect ratio? Message-ID: Greetings, I'm new to PIL, and am wondering if the following is possible. I want to resize an image by only specifying the width, but not the height. The height should be expanded or contracted automatically to fit the width value while maintaining the aspect ratio of the image. Second, I want to be able to specify the JPEG compression level. If you are familiar with ImageMagick, these would be accomplished using the following for example: % mogrify -quality 95 -resize 500x big.jpg I can't figure out whether these things are possible from the PIL documentation or not. Any ideas? Thanks. From calmasy at gmail.com Thu Jan 5 21:17:49 2006 From: calmasy at gmail.com (=?ISO-8859-1?Q?Count_L=E1szl=F3_de_Alm=E1sy?=) Date: Thu, 5 Jan 2006 13:17:49 -0700 Subject: [Image-SIG] PIL resize with aspect ratio? In-Reply-To: <6dd0218e36b278f07d48bf29f1961508@cogdon.org> References: <6dd0218e36b278f07d48bf29f1961508@cogdon.org> Message-ID: Thanks. How about setting the JPEG compression setting? Conceptually what I'm trying to do is the following: Take an image file of arbitrary size and of arbitrary width and height, and rescale it to a width of exactly 500 and a height of whatever, as long as the aspect ratio is preserved. Additionally, the rescaled image must be < 100kb in size, but I want to preserve as much quality as possible. My thought was that if I could specify the JPEG compression ratio as I can with ImageMagick, I could start at a high value and iteratively go lower and lower until a rescaled image file is produced that is just under 100kb size. On 1/5/06, Chris Cogdon wrote: > > On Jan 5, 2006, at 11:49, Count L?szl? de Alm?sy wrote: > > > Greetings, > > > > I'm new to PIL, and am wondering if the following is possible. > > > > I want to resize an image by only specifying the width, but not the > > height. The height should be expanded or contracted automatically to > > fit the width value while maintaining the aspect ratio of the image. > > > > Second, I want to be able to specify the JPEG compression level. > > > > If you are familiar with ImageMagick, these would be accomplished > > using the following for example: > > > > % mogrify -quality 95 -resize 500x big.jpg > > > > I can't figure out whether these things are possible from the PIL > > documentation or not. Any ideas? > > i.thumbnail ( (128,128), Image.ANTIALIAS ) > > this will create a thumbnail that is no more than 128x128, but will > keep the original geometry. > > > -- > ("`-/")_.-'"``-._ Chris Cogdon > . . `; -._ )-;-,_`) > (v_,)' _ )`-.\ ``-' > _.- _..-_/ / ((.' > ((,.-' ((,/ fL > > From chris at cogdon.org Thu Jan 5 20:55:31 2006 From: chris at cogdon.org (Chris Cogdon) Date: Thu, 5 Jan 2006 11:55:31 -0800 Subject: [Image-SIG] PIL resize with aspect ratio? In-Reply-To: References: Message-ID: <6dd0218e36b278f07d48bf29f1961508@cogdon.org> On Jan 5, 2006, at 11:49, Count L?szl? de Alm?sy wrote: > Greetings, > > I'm new to PIL, and am wondering if the following is possible. > > I want to resize an image by only specifying the width, but not the > height. The height should be expanded or contracted automatically to > fit the width value while maintaining the aspect ratio of the image. > > Second, I want to be able to specify the JPEG compression level. > > If you are familiar with ImageMagick, these would be accomplished > using the following for example: > > % mogrify -quality 95 -resize 500x big.jpg > > I can't figure out whether these things are possible from the PIL > documentation or not. Any ideas? i.thumbnail ( (128,128), Image.ANTIALIAS ) this will create a thumbnail that is no more than 128x128, but will keep the original geometry. -- ("`-/")_.-'"``-._ Chris Cogdon . . `; -._ )-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL From chris at cogdon.org Thu Jan 5 22:24:54 2006 From: chris at cogdon.org (Chris Cogdon) Date: Thu, 5 Jan 2006 13:24:54 -0800 Subject: [Image-SIG] PIL resize with aspect ratio? In-Reply-To: References: <6dd0218e36b278f07d48bf29f1961508@cogdon.org> Message-ID: <0948395badaeef11aca65707e4ccd13d@cogdon.org> On Jan 5, 2006, at 12:17, Count L?szl? de Alm?sy wrote: > Thanks. How about setting the JPEG compression setting? > > Conceptually what I'm trying to do is the following: > > Take an image file of arbitrary size and of arbitrary width and height, > and rescale it to a width of exactly 500 and a height of whatever, > as long as the aspect ratio is preserved. Additionally, the rescaled > image must be < 100kb in size, but I want to preserve as much > quality as possible. My thought was that if I could specify the > JPEG compression ratio as I can with ImageMagick, I could start > at a high value and iteratively go lower and lower until a rescaled > image file is produced that is just under 100kb size. The thumbnail command just creates the thumbnail image in memory, but doesn't 'compress' it yet. You do the compression when you save it as a particular format, and then you can set the compression. here's a more complete example: i = Image.open ( path ) i.thumbnail ( (128,128), Image.ANTIALIAS ) i.save ( thumb_path, quality=75 ) -- ("`-/")_.-'"``-._ Chris Cogdon . . `; -._ )-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL From calmasy at gmail.com Thu Jan 5 23:25:10 2006 From: calmasy at gmail.com (=?ISO-8859-1?Q?Count_L=E1szl=F3_de_Alm=E1sy?=) Date: Thu, 5 Jan 2006 15:25:10 -0700 Subject: [Image-SIG] PIL resize with aspect ratio? In-Reply-To: <0948395badaeef11aca65707e4ccd13d@cogdon.org> References: <6dd0218e36b278f07d48bf29f1961508@cogdon.org> <0948395badaeef11aca65707e4ccd13d@cogdon.org> Message-ID: Thanks so much, I had missed the 'quality' attribute. BTW, is 'ANTIALIAS' the best choice for what I want to do? I noticed the docs mention the following: "The BILINEAR and BICUBIC filters use a fixed input environment, and are best used for scale-preserving geometric transforms and upsamping" which seems like it suits rescaling while maintaining aspect ratio as I am doing. On 1/5/06, Chris Cogdon wrote: > > On Jan 5, 2006, at 12:17, Count L?szl? de Alm?sy wrote: > > > Thanks. How about setting the JPEG compression setting? > > > > Conceptually what I'm trying to do is the following: > > > > Take an image file of arbitrary size and of arbitrary width and height, > > and rescale it to a width of exactly 500 and a height of whatever, > > as long as the aspect ratio is preserved. Additionally, the rescaled > > image must be < 100kb in size, but I want to preserve as much > > quality as possible. My thought was that if I could specify the > > JPEG compression ratio as I can with ImageMagick, I could start > > at a high value and iteratively go lower and lower until a rescaled > > image file is produced that is just under 100kb size. > > The thumbnail command just creates the thumbnail image in memory, but > doesn't 'compress' it yet. You do the compression when you save it as a > particular format, and then you can set the compression. here's a more > complete example: > > i = Image.open ( path ) > i.thumbnail ( (128,128), Image.ANTIALIAS ) > i.save ( thumb_path, quality=75 ) > > > -- > ("`-/")_.-'"``-._ Chris Cogdon > . . `; -._ )-;-,_`) > (v_,)' _ )`-.\ ``-' > _.- _..-_/ / ((.' > ((,.-' ((,/ fL > > From chris at cogdon.org Thu Jan 5 23:28:31 2006 From: chris at cogdon.org (Chris Cogdon) Date: Thu, 5 Jan 2006 14:28:31 -0800 Subject: [Image-SIG] PIL resize with aspect ratio? In-Reply-To: References: <6dd0218e36b278f07d48bf29f1961508@cogdon.org> <0948395badaeef11aca65707e4ccd13d@cogdon.org> Message-ID: On Jan 5, 2006, at 14:25, Count L?szl? de Alm?sy wrote: > Thanks so much, I had missed the 'quality' attribute. BTW, is > 'ANTIALIAS' the best choice for what I want to do? I noticed the > docs mention the following: > > "The BILINEAR and BICUBIC filters use a fixed input environment, and > are best used for scale-preserving geometric transforms and upsamping" > > which seems like it suits rescaling while maintaining aspect ratio as > I am doing. I've found that ANTIALIAS results in much better thumbnails, and will probably produce better looking results when scaling down. The others I suspect will work well when scaling up. Best way... try it out and see :) -- ("`-/")_.-'"``-._ Chris Cogdon . . `; -._ )-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL From calmasy at gmail.com Thu Jan 5 23:35:45 2006 From: calmasy at gmail.com (=?ISO-8859-1?Q?Count_L=E1szl=F3_de_Alm=E1sy?=) Date: Thu, 5 Jan 2006 15:35:45 -0700 Subject: [Image-SIG] PIL resize with aspect ratio? In-Reply-To: References: <6dd0218e36b278f07d48bf29f1961508@cogdon.org> <0948395badaeef11aca65707e4ccd13d@cogdon.org> Message-ID: I'm actually using resize() instead of thumbnail() in the code I'm writing, but I think the idea is the same, right? I'm color blind, so it's not as easy for me as most to distinguish such fine details by eye, but I think I'll use ANTIALIAS. On 1/5/06, Chris Cogdon wrote: > > On Jan 5, 2006, at 14:25, Count L?szl? de Alm?sy wrote: > > > Thanks so much, I had missed the 'quality' attribute. BTW, is > > 'ANTIALIAS' the best choice for what I want to do? I noticed the > > docs mention the following: > > > > "The BILINEAR and BICUBIC filters use a fixed input environment, and > > are best used for scale-preserving geometric transforms and upsamping" > > > > which seems like it suits rescaling while maintaining aspect ratio as > > I am doing. > > I've found that ANTIALIAS results in much better thumbnails, and will > probably produce better looking results when scaling down. The others I > suspect will work well when scaling up. > > Best way... try it out and see :) > > > -- > ("`-/")_.-'"``-._ Chris Cogdon > . . `; -._ )-;-,_`) > (v_,)' _ )`-.\ ``-' > _.- _..-_/ / ((.' > ((,.-' ((,/ fL > > From chris at cogdon.org Thu Jan 5 23:55:55 2006 From: chris at cogdon.org (Chris Cogdon) Date: Thu, 5 Jan 2006 14:55:55 -0800 Subject: [Image-SIG] PIL resize with aspect ratio? In-Reply-To: References: <6dd0218e36b278f07d48bf29f1961508@cogdon.org> <0948395badaeef11aca65707e4ccd13d@cogdon.org> Message-ID: On Jan 5, 2006, at 14:35, Count L?szl? de Alm?sy wrote: > I'm actually using resize() instead of thumbnail() in the code I'm > writing, > but I think the idea is the same, right? yes. resize does much the same thing, but you have to control the new x and y values explicitly... you don't get the 'maintain geometry' that 'thumbnail' gives you. -- ("`-/")_.-'"``-._ Chris Cogdon . . `; -._ )-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL From kevin at cazabon.com Fri Jan 6 08:21:39 2006 From: kevin at cazabon.com (kevin at cazabon.com) Date: Fri, 6 Jan 2006 08:21:39 +0100 Subject: [Image-SIG] PIL resize with aspect ratio? References: <6dd0218e36b278f07d48bf29f1961508@cogdon.org><0948395badaeef11aca65707e4ccd13d@cogdon.org> Message-ID: <004401c61291$d64100e0$650aa8c0@duallie> Here's a quick-and-dirty function to do the same. The difference is that Thumbnail modifies the image in place, while this returns a new image. There is also the "fit" function in the ImageChops module that is a LOT more detailed. def maxSize(image, maxSize, method = 3): """ im = maxSize(im, (maxSizeX, maxSizeY), method = Image.BICUBIC) Resizes a PIL image to a maximum size specified while maintaining the aspect ratio of the image. Similar to Image.thumbnail(), but allows usage of different resizing methods and does NOT modify the image in place.""" imAspect = float(image.size[0])/float(image.size[1]) outAspect = float(maxSize[0])/float(maxSize[1]) if imAspect >= outAspect: #set to maxWidth x maxWidth/imAspect return image.resize((maxSize[0], int((float(maxSize[0])/imAspect) + 0.5)), method) else: #set to maxHeight*imAspect x maxHeight return image.resize((int((float(maxSize[1])*imAspect) + 0.5), maxSize[1]), method) Kevin. ----- Original Message ----- From: "Count L?szl? de Alm?sy" To: "Chris Cogdon" Cc: Sent: Thursday, January 05, 2006 11:35 PM Subject: Re: [Image-SIG] PIL resize with aspect ratio? I'm actually using resize() instead of thumbnail() in the code I'm writing, but I think the idea is the same, right? I'm color blind, so it's not as easy for me as most to distinguish such fine details by eye, but I think I'll use ANTIALIAS. On 1/5/06, Chris Cogdon wrote: > > On Jan 5, 2006, at 14:25, Count L?szl? de Alm?sy wrote: > > > Thanks so much, I had missed the 'quality' attribute. BTW, is > > 'ANTIALIAS' the best choice for what I want to do? I noticed the > > docs mention the following: > > > > "The BILINEAR and BICUBIC filters use a fixed input environment, and > > are best used for scale-preserving geometric transforms and upsamping" > > > > which seems like it suits rescaling while maintaining aspect ratio as > > I am doing. > > I've found that ANTIALIAS results in much better thumbnails, and will > probably produce better looking results when scaling down. The others I > suspect will work well when scaling up. > > Best way... try it out and see :) > > > -- > ("`-/")_.-'"``-._ Chris Cogdon > . . `; -._ )-;-,_`) > (v_,)' _ )`-.\ ``-' > _.- _..-_/ / ((.' > ((,.-' ((,/ fL > > _______________________________________________ Image-SIG maillist - Image-SIG at python.org http://mail.python.org/mailman/listinfo/image-sig From steve at holdenweb.com Fri Jan 6 08:25:03 2006 From: steve at holdenweb.com (Steve Holden) Date: Fri, 06 Jan 2006 07:25:03 +0000 Subject: [Image-SIG] PIL resize with aspect ratio? In-Reply-To: References: <6dd0218e36b278f07d48bf29f1961508@cogdon.org> <43BD8D6E.10909@holdenweb.com> Message-ID: <43BE1B4F.9030207@holdenweb.com> Count L?szl? de Alm?sy wrote: > Wonderful, thank-you, I adapted this to work for me. > > On 1/5/06, Steve Holden wrote: > >>Count L?szl? de Alm?sy wrote: >> >>>Thanks. How about setting the JPEG compression setting? >>> >>>Conceptually what I'm trying to do is the following: >>> >>>Take an image file of arbitrary size and of arbitrary width and height, >>>and rescale it to a width of exactly 500 and a height of whatever, >>>as long as the aspect ratio is preserved. Additionally, the rescaled >>>image must be < 100kb in size, but I want to preserve as much >>>quality as possible. My thought was that if I could specify the >>>JPEG compression ratio as I can with ImageMagick, I could start >>>at a high value and iteratively go lower and lower until a rescaled >>>image file is produced that is just under 100kb size. >>> >> >>The scaling is relatively easy; here's a piece of code I use to ensure >>that an image is at most 120 pixels wide: >> >> im = Image.open(c) >> w, h = im.size >> if w > 120: >> sf = 120.0/w >> newsize = (120, int(h*sf)) >> im = im.resize(newsize) >> >>you can see I compute a scaling factor that will reduce the width to 120 >>pixels, and apply the same factor to both dimensions. Your code can be >>similar. >> >>As far as the jpeg compression goes, you can use a "quality" keyword >>argument to the image.save() operation to specify othe compression >>ratio. I believe it can take values from 1 (worst) to 100 (best) and >>defaults to 75. Hope this gives you enough to play with. >> >>regards >> Steve Glad it worked out for you. Sorry I replied to you rather than the list. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ From desai.suhas at gmail.com Sat Jan 7 09:05:26 2006 From: desai.suhas at gmail.com (Suhas Desai) Date: Sat, 7 Jan 2006 13:35:26 +0530 Subject: [Image-SIG] Couldn't import image library Message-ID: Hi I am newbie in PIL progmming,I hv installed pil 1.1.5 on python 2.2 but unable to import image libray. I Hv tried installed pil 1.1.5 python setup.py build_ext -i python selftest.py and tried for import image it gives error for no module found. PLease help me. Thanks in advance. -- Thanks and Regards, Suhas Desai Department of Computer Science and Engg Walchand CE,Sangli,MS INDIA-416415. Mobile: 093711 27676 From Richard.Madden at USherbrooke.ca Sat Jan 7 15:19:40 2006 From: Richard.Madden at USherbrooke.ca (Richard Madden) Date: Sat, 07 Jan 2006 09:19:40 -0500 Subject: [Image-SIG] Image-SIG Digest, Vol 33, Issue 5 In-Reply-To: References: Message-ID: <43BFCDFC.2010105@USherbrooke.ca> image-sig-request at python.org wrote: >Send Image-SIG mailing list submissions to > image-sig at python.org > >To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/image-sig >or, via email, send a message with subject or body 'help' to > image-sig-request at python.org > >You can reach the person managing the list at > image-sig-owner at python.org > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Image-SIG digest..." > > >------------------------------------------------------------------------ > >Today's Topics: > > 1. Couldn't import image library (Suhas Desai) > > > > ------------------------------------------------------------------------ > > Subject: > [Image-SIG] Couldn't import image library > From: > Suhas Desai > Date: > Sat, 7 Jan 2006 13:35:26 +0530 > To: > image-sig at python.org > > To: > image-sig at python.org > > >Hi > I am newbie in PIL progmming,I hv installed pil 1.1.5 on python >2.2 but unable to import image libray. > I Hv tried > installed pil 1.1.5 > python setup.py build_ext -i > python selftest.py > and tried for import image > it gives error for no module found. > PLease help me. > Thanks in advance. >-- >Thanks and Regards, >Suhas Desai >Department of Computer Science and Engg >Walchand CE,Sangli,MS >INDIA-416415. >Mobile: 093711 27676 > > > Try "import Image" with an upper case I. Best, Dick From sydow at ncst.nrl.navy.mil Mon Jan 9 23:59:52 2006 From: sydow at ncst.nrl.navy.mil (Eric Sydow) Date: Mon, 09 Jan 2006 17:59:52 -0500 Subject: [Image-SIG] PIL Installation problem Message-ID: <1136847592.10799.17.camel@sydow.nrl.navy.mil> Redhat WS Linux, PIL 1.1.5, python2.3 Hung up because I had tk rpm package installed but not tk-devel package. Thus sys libs installed for tk but not include files, static lib, etc. Since setup.py could import _tkinter and found the sys libs it went ahead and tried to build, then gcc choked when it couldn't find tk.h. I manually blocked the setup.py from adding the tk extension for now, but it seems to make sense in setup.py to ensure that tk.h exists (good litmus test to see if whole developer infrastructure is there). Seem like a worthwhile change? Want a patch? Just ask. Thanks, Eric -- Eric Sydow From stuart.white1 at gmail.com Fri Jan 13 19:59:22 2006 From: stuart.white1 at gmail.com (Stuart White) Date: Fri, 13 Jan 2006 12:59:22 -0600 Subject: [Image-SIG] Retrieve a GIF's palette entries using Python Imaging Library (PIL) Message-ID: <4af5cd780601131059k91f70f2ted6414b58a1a6786@mail.gmail.com> I am using the Python Imaging Library (PIL) to process GIF images. I need to be able to retrieve the RGB values for each color palette entry. I see that the 'Image' class has a 'palette' attribute which returns an object of type 'ImagePalette'. However, the documentation is a bit lacking regarding how to maniuplate the ImagePalette class to retrieve the palette entries' RGB values. Can anyone point me to a short example? Thanks! From carroll at tjc.com Fri Jan 13 23:30:42 2006 From: carroll at tjc.com (Terry Carroll) Date: Fri, 13 Jan 2006 14:30:42 -0800 (PST) Subject: [Image-SIG] Retrieve a GIF's palette entries using Python Imaging Library (PIL) In-Reply-To: <4af5cd780601131059k91f70f2ted6414b58a1a6786@mail.gmail.com> Message-ID: On Fri, 13 Jan 2006, Stuart White wrote: > I am using the Python Imaging Library (PIL) to process GIF images. I > need to be able to retrieve the RGB values for each color palette entry. > > I see that the 'Image' class has a 'palette' attribute which returns an > object of type 'ImagePalette'. However, the documentation is a bit > lacking regarding how to maniuplate the ImagePalette class to retrieve > the palette entries' RGB values. Can anyone point me to a short example? There was a very helpful discussion on this topic on Python-tutor last summer. Check out the thread "PIL's palette" at this URL: http://mail.python.org/pipermail/tutor/2005-July/thread.html#39719 From stuart.white1 at gmail.com Sat Jan 14 04:52:06 2006 From: stuart.white1 at gmail.com (Stuart White) Date: Fri, 13 Jan 2006 21:52:06 -0600 Subject: [Image-SIG] Retrieve a GIF's palette entries using Python Imaging Library (PIL) In-Reply-To: References: <4af5cd780601131059k91f70f2ted6414b58a1a6786@mail.gmail.com> Message-ID: <4af5cd780601131952ua2767cflfae9c1a3d7db4a01@mail.gmail.com> Thank you for posting this response. It is indeed a thorough discussion of what a palette is and how to set it. I'm looking for a way to *retrieve* an image's palette (without modifying it in any way). So, I definitely don't want to use putpalette(). A "palette" attribute exists in the "Image" class that returns an object of type "ImagePalette", but for the life of me, I can't figure out how to use this object to retrieve the image's palette RGB values. And I can't seem to find anything by Googling either. On 1/13/06, Terry Carroll wrote: > On Fri, 13 Jan 2006, Stuart White wrote: > > > I am using the Python Imaging Library (PIL) to process GIF images. I > > need to be able to retrieve the RGB values for each color palette entry. > > > > I see that the 'Image' class has a 'palette' attribute which returns an > > object of type 'ImagePalette'. However, the documentation is a bit > > lacking regarding how to maniuplate the ImagePalette class to retrieve > > the palette entries' RGB values. Can anyone point me to a short example? > > There was a very helpful discussion on this topic on Python-tutor last > summer. Check out the thread "PIL's palette" at this URL: > > http://mail.python.org/pipermail/tutor/2005-July/thread.html#39719 > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > From stuart.white1 at gmail.com Sat Jan 14 05:26:48 2006 From: stuart.white1 at gmail.com (Stuart White) Date: Fri, 13 Jan 2006 22:26:48 -0600 Subject: [Image-SIG] Retrieve a GIF's palette entries using Python Imaging Library (PIL) In-Reply-To: <4af5cd780601131952ua2767cflfae9c1a3d7db4a01@mail.gmail.com> References: <4af5cd780601131059k91f70f2ted6414b58a1a6786@mail.gmail.com> <4af5cd780601131952ua2767cflfae9c1a3d7db4a01@mail.gmail.com> Message-ID: <4af5cd780601132026h74ed9b9ek65f7c5681e985459@mail.gmail.com> I''ll answer my own question. Here's what I was looking for: lut = im.resize((256, 1)) lut.putdata(range(256)) lut = list(lut.convert("RGB").getdata()) print lut On 1/13/06, Stuart White wrote: > Thank you for posting this response. It is indeed a thorough > discussion of what a palette is and how to set it. > > I'm looking for a way to *retrieve* an image's palette (without > modifying it in any way). So, I definitely don't want to use > putpalette(). A "palette" attribute exists in the "Image" class that > returns an object of type "ImagePalette", but for the life of me, I > can't figure out how to use this object to retrieve the image's > palette RGB values. And I can't seem to find anything by Googling > either. > > On 1/13/06, Terry Carroll wrote: > > On Fri, 13 Jan 2006, Stuart White wrote: > > > > > I am using the Python Imaging Library (PIL) to process GIF images. I > > > need to be able to retrieve the RGB values for each color palette entry. > > > > > > I see that the 'Image' class has a 'palette' attribute which returns an > > > object of type 'ImagePalette'. However, the documentation is a bit > > > lacking regarding how to maniuplate the ImagePalette class to retrieve > > > the palette entries' RGB values. Can anyone point me to a short example? > > > > There was a very helpful discussion on this topic on Python-tutor last > > summer. Check out the thread "PIL's palette" at this URL: > > > > http://mail.python.org/pipermail/tutor/2005-July/thread.html#39719 > > > > _______________________________________________ > > Image-SIG maillist - Image-SIG at python.org > > http://mail.python.org/mailman/listinfo/image-sig > > > From ayuda-admin at linux.org.mx Sat Jan 14 20:22:30 2006 From: ayuda-admin at linux.org.mx (ayuda-admin at linux.org.mx) Date: Sat, 14 Jan 2006 13:22:30 -0600 Subject: [Image-SIG] Your message to Ayuda awaits moderator approval Message-ID: <20060114192230.3215.36073.Mailman@pegaso.fisica.unam.mx> Your mail to 'Ayuda' with the subject Returned mail: see transcript for details Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notification of the moderator's decision. From davis87 at purdue.edu Wed Jan 18 21:56:09 2006 From: davis87 at purdue.edu (Anne Davis) Date: Wed, 18 Jan 2006 15:56:09 -0500 Subject: [Image-SIG] Image Problems Message-ID: <001201c61c71$9bf45100$6501a8c0@Anne1> Special Interest Group Members, I am a student at Purdue University. Myself and two other students are working on our senior design project and we have hit a snag when trying to import and view an image file. The file is a multi-slide picture from a CAT scan machine. For our project we need to be able to view the slides and also change the grey-scale information into a data range. We do know that the file type is not a built-in PIL format. We know the slide resolutions (512x512), there are 143 slides, the bytes per pixel (16 bytes), the gap between slides (0 bytes), and that it's a 16 bit unsigned little endian format. Is there a way that we can get Python to import this file and be able to view the slices by using a scroll button or the arrow keys? Or should we be looking into another imaging program that already has this capability? Thanks for the time, Anne Davis Purdue University School of Nuclear Engineering davis87 at purdue.edu From dima at shiftingplanes.org Thu Jan 19 02:57:48 2006 From: dima at shiftingplanes.org (Dmitry (Dima) Strakovsky) Date: Wed, 18 Jan 2006 19:57:48 -0600 Subject: [Image-SIG] Image Problems In-Reply-To: <000801c61c8c$7a711bb0$6501a8c0@Anne1> References: <001201c61c71$9bf45100$6501a8c0@Anne1> <43CED643.7060100@shiftingplanes.org> <000801c61c8c$7a711bb0$6501a8c0@Anne1> Message-ID: <43CEF21C.8010405@shiftingplanes.org> I looked at: http://www.wotsit.org/ and through imagemagick formats listing and couldn't find it Can the program that generated this file export other formats (even if it's just a list of files instead of a single file animation)? Do you have a detailed description of the format? like if you inhale the header, can you make out what's going on? d Anne Davis wrote: > The file is TzIMG file format. > > Anne Davis > Purdue University School of > Nuclear Engineering > (574) 850-4171 > davis87 at purdue.edu > > -- Dmitry (Dima) Strakovsky dima at shiftingplanes.org www.shiftingplanes.org From michele.petrazzo at unipex.it Thu Jan 19 09:56:04 2006 From: michele.petrazzo at unipex.it (Michele Petrazzo) Date: Thu, 19 Jan 2006 09:56:04 +0100 Subject: [Image-SIG] Image Problems In-Reply-To: <001201c61c71$9bf45100$6501a8c0@Anne1> References: <001201c61c71$9bf45100$6501a8c0@Anne1> Message-ID: <43CF5424.7050908@unipex.it> Anne Davis wrote: > Special Interest Group Members, > > I am a student at Purdue University. Myself and two other students > are working on our senior design project and we have hit a snag when > trying to import and view an image file. The file is a multi-slide > picture from a CAT scan machine. For our project we need to be able > to view the slides and also change the grey-scale information into a > data range. > > We do know that the file type is not a built-in PIL format. We know > the slide resolutions (512x512), there are 143 slides, the bytes per > pixel (16 bytes), the gap between slides (0 bytes), and that it's a > 16 bit unsigned little endian format. > > Is there a way that we can get Python to import this file and be able > to view the slices by using a scroll button or the arrow keys? Or > should we be looking into another imaging program that already has > this capability? You need a "complete" (not so difficult to create) application and a library that read your 16 bit gray images. You can use one of the graphical library that python has, like wxpython or gtk for show the images and a image library for read and convert it. Like other user say, you can use imagemagick or freeimagepy (google for both). However, for create the GUI, I think that with about 100 lines you can create it! If you want to use wxpython, come into the wxpython mailing list where you can find a lot of advice! P.s. Are the image into a multi-page format (tif) ? Michele From fredrik at pythonware.com Thu Jan 19 15:04:46 2006 From: fredrik at pythonware.com (Fredrik Lundh) Date: Thu, 19 Jan 2006 15:04:46 +0100 Subject: [Image-SIG] Image Problems References: <001201c61c71$9bf45100$6501a8c0@Anne1> Message-ID: Anne Davis wrote: > We do know that the file type is not a built-in PIL format. We know the > slide resolutions (512x512), there are 143 slides, the bytes per pixel (16 > bytes), the gap between slides (0 bytes), and that it's a 16 bit unsigned > little endian format. 16 bytes per pixel ? how big is that 143-slide file? If it's not compressed, and you meant 16 bits rather than 16 bytes, the file should be ~75 megabyte, and you should be able to use PIL's fromstring (or frombuffer) API to read the file. If you really meant 16 bytes, and the file is ~600 megabyte, things might be a bit trickier, but it might be solvable. However, if the file is compressed, we need a spec. From bbaxter at wadsworth.org Thu Jan 19 16:13:51 2006 From: bbaxter at wadsworth.org (William Baxter) Date: Thu, 19 Jan 2006 10:13:51 -0500 Subject: [Image-SIG] Image Problems References: <001201c61c71$9bf45100$6501a8c0@Anne1> Message-ID: <43CFACAF.A7B5EFBD@wadsworth.org> I also had to write Python code to import a custom format into PIL, for the SPIDER image processing system (www.wadsworth.org/spider_doc/spider/docs/spider.html). Perhaps my experience can give you some pointers. First, remember that image processing is distinct from display. PIL can apply operations to your data (change the grey-scale information), but you'll need a graphical library, like Tkinter or wxPython, to create a display GUI (e.g., view the slices by using a scroll button or the arrow keys). To import images into PIL, see "Writing Your Own File Decoder" (www.pythonware.com/library/pil/handbook/decoder.htm). You'll write something with a name like PurdueCATImagePlugin.py, which will go into the python/site-packages/PIL directory, and import this, along with Image, into Python. See the other xxxPlugin.py files in the PIL directory for more examples. To write your own Plugin.py, the first step is to know how the header (if any) is structured so you can find where the data starts in the file. Your data takes up 74973184 bytes (512x512x143x2). If this is the size of the file, then there is no header, and you can try to read in the raw data. If your file is larger than this, then the header should be headerbytes = (filesize - 74973184) bytes. Try skipping headerbytes into the file and reading the raw data. If it's anything more complicated than this, then you'll need to get as much information as you can from the CAT scanner documentation about its output format. Good luck! Bill Baxter Wadsworth Center Empire State Plaza, PO Box 509 Albany, NY 12201-0509 Anne Davis wrote: > > Special Interest Group Members, > > I am a student at Purdue University. Myself and two other students are > working on our senior design project and we have hit a snag when trying to > import and view an image file. The file is a multi-slide picture from a CAT > scan machine. For our project we need to be able to view the slides and > also change the grey-scale information into a data range. > > We do know that the file type is not a built-in PIL format. We know the > slide resolutions (512x512), there are 143 slides, the bytes per pixel (16 > bytes), the gap between slides (0 bytes), and that it's a 16 bit unsigned > little endian format. > > Is there a way that we can get Python to import this file and be able to > view the slices by using a scroll button or the arrow keys? Or should we be > looking into another imaging program that already has this capability? > > Thanks for the time, > > Anne Davis > Purdue University School of > Nuclear Engineering > davis87 at purdue.edu > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig From michele.petrazzo at unipex.it Fri Jan 20 16:29:18 2006 From: michele.petrazzo at unipex.it (Michele Petrazzo) Date: Fri, 20 Jan 2006 16:29:18 +0100 Subject: [Image-SIG] [ANN] FreeImagePy 1.2.0 Message-ID: <43D101CE.7050400@unipex.it> FreeImagePy 1.2.0 is available at freeimagepy.sf.net What is? It' a python wrapper for FreeImage, Open Source library for developers who would like to support popular graphics image formats. How work? It use a binary freeimage library present on the system and ctypes. Major changes from 1.1.0: Start the port to a more pythonic interface. See Image class documentation (or the examples) A bug in *nix mode that cause a problem when getStatus are called Michele Petrazzo From aharrin at luc.edu Fri Jan 20 17:49:12 2006 From: aharrin at luc.edu (Andrew Harrington) Date: Fri, 20 Jan 2006 10:49:12 -0600 Subject: [Image-SIG] documentation error and feature request Message-ID: <43D11488.2010407@luc.edu> A documentation error and suggestion for pildriver: The online pildriver documentation http://www.pythonware.com/library/pil/handbook/pildriver.htm omits the float parameter in the sharpness method description, and I would guess there are similar issues in lighten and others. A feature request: Currently you can resize to specific dimensions in pildriver. I frequently want a half size picture, whatever the original size. It would be good to be able to scale an image by a factor. That could be done directly with a variation on resize or an operator on a size pair scaleby which produces the dimensions scaled by factor and rounded and converted back to int's Thanks! I love PIL. -- Andrew N. Harrington Computer Science Department Undergraduate Program Director Loyola University Chicago http://www.cs.luc.edu/~anh 512B Lewis Towers (office) Office Phone: 312-915-7982 Snail mail to Lewis Towers 416 Dept. Fax: 312-915-7998 820 North Michigan Avenue aharrin at luc.edu Chicago, Illinois 60611 From davidrushby at yahoo.com Tue Jan 24 01:21:00 2006 From: davidrushby at yahoo.com (David Rushby) Date: Mon, 23 Jan 2006 16:21:00 -0800 (PST) Subject: [Image-SIG] Image.point breakage in PIL 1.1.5? Message-ID: <20060124002100.37734.qmail@web30009.mail.mud.yahoo.com> I have some code that uses the Image.point() method to filter pixels in black-and-white images. I'm using Python 2.3.5 on Windows 2000, and when I tried to upgrade from PIL 1.1.4 to 1.1.5, the code stopped working. Now it raises an error like this: ------------------------------------------------------------------------ Traceback (most recent call last): File "test2.py", line 4, in ? i2 = i1.point(lambda p: (p > 20 and p) or 0) File "C:\dev\python\core\Lib\site-packages\PIL\Image.py", line 1039, in point lut = map(lut, range(256)) * self.im.bands AttributeError: 'NoneType' object has no attribute 'bands' ------------------------------------------------------------------------ If you take the image file at http://kinterbasdb.sourceforge.net/other/temp/test2.bmp and apply the following code to it, you'll see the error: ------------------------------------------------------------------------ from PIL import Image i1 = Image.open('test2.bmp') i2 = i1.point(lambda p: (p > 20 and p) or 0) ------------------------------------------------------------------------ This works fine with PIL 1.1.4, but not 1.1.5. Is my code in error, or is there a bug in PIL 1.1.5? Thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From fredrik at pythonware.com Fri Jan 27 15:53:27 2006 From: fredrik at pythonware.com (Fredrik Lundh) Date: Fri, 27 Jan 2006 15:53:27 +0100 Subject: [Image-SIG] Image.point breakage in PIL 1.1.5? References: <20060124002100.37734.qmail@web30009.mail.mud.yahoo.com> Message-ID: David Rushby wrote: >I have some code that uses the Image.point() method to filter pixels in > black-and-white images. > > I'm using Python 2.3.5 on Windows 2000, and when I tried to upgrade > from PIL 1.1.4 to 1.1.5, the code stopped working. Now it raises an > error like this: > ------------------------------------------------------------------------ > Traceback (most recent call last): > File "test2.py", line 4, in ? > i2 = i1.point(lambda p: (p > 20 and p) or 0) > File "C:\dev\python\core\Lib\site-packages\PIL\Image.py", line 1039, > in point > lut = map(lut, range(256)) * self.im.bands > AttributeError: 'NoneType' object has no attribute 'bands' > ------------------------------------------------------------------------ > > If you take the image file at > http://kinterbasdb.sourceforge.net/other/temp/test2.bmp and apply the > following code to it, you'll see the error: > ------------------------------------------------------------------------ > from PIL import Image > i1 = Image.open('test2.bmp') > i2 = i1.point(lambda p: (p > 20 and p) or 0) > ------------------------------------------------------------------------ > > This works fine with PIL 1.1.4, but not 1.1.5. Is my code in error, or > is there a bug in PIL 1.1.5? it's a bug in PIL (it's fixed in 1.1.6, but I didn't know that it worked in 1.1.4). here's a workaround: from PIL import Image i1 = Image.open('test2.bmp') i1.load() # <-- use explicit load i2 = i1.point(lambda p: (p > 20 and p) or 0) From davidrushby at yahoo.com Fri Jan 27 16:07:02 2006 From: davidrushby at yahoo.com (David Rushby) Date: Fri, 27 Jan 2006 07:07:02 -0800 (PST) Subject: [Image-SIG] Image.point breakage in PIL 1.1.5? In-Reply-To: Message-ID: <20060127150702.17064.qmail@web30006.mail.mud.yahoo.com> --- Fredrik Lundh wrote: > it's a bug in PIL (it's fixed in 1.1.6, but I didn't know that it > worked in 1.1.4). > > here's a workaround... Thanks, Fredrik! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bernd at prager.ws Mon Jan 30 21:09:10 2006 From: bernd at prager.ws (Bernd Prager) Date: Mon, 30 Jan 2006 15:09:10 -0500 (EST) Subject: [Image-SIG] OleFileIO.py still maintained? Message-ID: <45450.198.45.19.20.1138651750.squirrel@mail.prager.ws> I'm trying to extract pictures from Outlook attachments and thought to give OleFileIO.py a shot. With PIL-1.1.5 for Python2.4 on Windows I unfortunately run into strange errors. When I try to load the message file I get: File "C:\bin\Python24\Lib\site-packages\PIL\OleFileIO.py", line 103, in __init__ data.append(fp.read(sectorsize)) AttributeError: 'str' object has no attribute 'append' It's the init in class _OleStream(StringIO.StringIO). Any ideas what's wrong? Thanks a lot, -- Bernd From winfried.diehm at online.de Tue Jan 31 18:19:37 2006 From: winfried.diehm at online.de (Winfried Diehm) Date: Tue, 31 Jan 2006 18:19:37 +0100 Subject: [Image-SIG] how to get exif information Message-ID: <200601311819.38035.winfried.diehm@online.de> Dear SIG members got pil 1.1.5 installed and running. Want to get exif information from jpeg-images. When I open an image, the image has a method info. This method returns a dict with one key. The value is a string with 14403 characters. For example: >>> im.info.keys() ['exif'] >>> im.info["exif"][0:20] 'Exif\x00\x00II*\x00\x08\x00\x00\x00\x0b\x00\x0e\x01\x02\x00' How can I get the exif information (human readable;-) out of the string ? Thanks Winfried From fredrik at pythonware.com Tue Jan 31 23:03:59 2006 From: fredrik at pythonware.com (Fredrik Lundh) Date: Tue, 31 Jan 2006 23:03:59 +0100 Subject: [Image-SIG] how to get exif information References: <200601311819.38035.winfried.diehm@online.de> Message-ID: Winfried Diehm wrote: > got pil 1.1.5 installed and running. > Want to get exif information from jpeg-images. When I open an image, the image > has a method info. This method returns a dict with one key. The value is a > string with 14403 characters. For example: > >>> im.info.keys() > ['exif'] > >>> im.info["exif"][0:20] > 'Exif\x00\x00II*\x00\x08\x00\x00\x00\x0b\x00\x0e\x01\x02\x00' > How can I get the exif information (human readable;-) out of the string ? try calling the _getexif() method on the im object. if successful, this method returns a dictionary mapping exif tags to corresponding values. (the ExifTags module contains a dictionary mapping tag values to tag names). for a little more information, and some useful links, see this post: http://mail.python.org/pipermail/image-sig/2005-July/003427.html From carroll at tjc.com Tue Jan 31 23:41:20 2006 From: carroll at tjc.com (Terry Carroll) Date: Tue, 31 Jan 2006 14:41:20 -0800 (PST) Subject: [Image-SIG] how to get exif information In-Reply-To: <200601311819.38035.winfried.diehm@online.de> Message-ID: On Tue, 31 Jan 2006, Winfried Diehm wrote: > got pil 1.1.5 installed and running. > Want to get exif information from jpeg-images. In an app I wrote before PIL had EXIF support, I was using Gene Cash's EXIF.py at http://home.cfl.rr.com/genecash/digital_camera.html . You might still find it helpful. From ken at sparklight.com Fri Jan 13 21:04:44 2006 From: ken at sparklight.com (Ken Brooks) Date: Fri, 13 Jan 2006 20:04:44 -0000 Subject: [Image-SIG] Trouble installing PIL package Message-ID: OS: MacOS 10.4.4 System: 1GHz / 1GB RAM Python: 2.3.5 Using MacPython's PackageManager to install PIL, came to following problem (at end of quoted text): -------------------------------------------------------------------- PIL 1.1.5 BUILD SUMMARY -------------------------------------------------------------------- version 1.1.5 platform darwin 2.3.5 (#1, Mar 20 2005, 20:38:20) [GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] -------------------------------------------------------------------- --- TKINTER support ok --- JPEG support ok --- ZLIB (PNG/ZIP) support ok *** FREETYPE2 support not available -------------------------------------------------------------------- To add a missing option, make sure you have the required library, and set the corresponding ROOT variable in the setup.py script. To check the build, run the selftest.py script. running build_scripts creating build/scripts-2.3 copying and adjusting Scripts/pilconvert.py -> build/scripts-2.3 copying and adjusting Scripts/pildriver.py -> build/scripts-2.3 copying and adjusting Scripts/pilfile.py -> build/scripts-2.3 copying Scripts/pilfont.py -> build/scripts-2.3 copying and adjusting Scripts/pilprint.py -> build/scripts-2.3 changing mode of build/scripts-2.3/pilconvert.py from 644 to 755 changing mode of build/scripts-2.3/pildriver.py from 644 to 755 changing mode of build/scripts-2.3/pilfile.py from 644 to 755 changing mode of build/scripts-2.3/pilfont.py from 664 to 775 changing mode of build/scripts-2.3/pilprint.py from 644 to 755 running install_lib copying build/lib.darwin-8.4.0-Power_Macintosh-2.3/_imaging.so -> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/PIL copying build/lib.darwin-8.4.0-Power_Macintosh-2.3/_imagingtk.so -> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/PIL running install_scripts copying build/scripts-2.3/pilconvert.py -> /System/Library/Frameworks/Python.framework/Versions/2.3/bin error: /System/Library/Frameworks/Python.framework/Versions/2.3/bin/pilconvert.py: Permission denied install PIL-1.1.5-source: running ""/Applications/MacPython-2.3/PackageManager.app/Contents/MacOS/Python" setup.py install " failed It really did fail: when I try PIL's selftest.py, it says, *** The _imaging C module is not installed If it was just a matter of copying files, I would use sudo and do it myself - but I've searched that setup.py script and I can't even find in it where the copy commands are being issued! I also tried downloading PIL separately and saying: sudo python setup.py install which got farther but still doesn't pass the selftest check. Help?? Ken Brooks Sparkling Light Software -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20060113/9e5ba72f/attachment-0001.html From adrian at haqa.co.uk Thu Jan 19 21:42:03 2006 From: adrian at haqa.co.uk (Adrian Hungate) Date: Thu, 19 Jan 2006 20:42:03 -0000 Subject: [Image-SIG] Patch to Imaging-1.1.5 to allow bdist_rpm Message-ID: <00ed01c61d35$5a6a83c0$0300a8c0@haqa.co.uk> I'm not on the list (I know, you're probably tired of hearing that) but I have produced a patch to Imaging-1.1.5 to allow bdist_rpm to work. Here it is... Adrian... ------- CUT HERE ------- diff -ur Imaging-1.1.5/MANIFEST Imaging-1.1.5-fixed/MANIFEST --- Imaging-1.1.5/MANIFEST 2005-10-05 23:11:01.000000000 +0100 +++ Imaging-1.1.5-fixed/MANIFEST 2006-01-19 20:15:08.000000000 +0000 @@ -80,3 +80,95 @@ Scripts/pilfile.py Scripts/pilfont.py Scripts/pilprint.py +decode.c +display.c +encode.c +_imaging.c +_imagingft.c +_imagingtk.c +map.c +outline.c +path.c +Sane/CHANGES +Sane/demo_numarray.py +Sane/demo_pil.py +Sane/README +Sane/_sane.c +Sane/sanedoc.txt +Sane/sane.py +Sane/setup.py +Tk/booster.txt +Tk/install.txt +Tk/pilbitmap.txt +Tk/tkImaging.c +libImaging/Access.c +libImaging/Antialias.c +libImaging/Bands.c +libImaging/BitDecode.c +libImaging/Bit.h +libImaging/Blend.c +libImaging/Chops.c +libImaging/Convert.c +libImaging/ConvertYCbCr.c +libImaging/Copy.c +libImaging/Crc32.c +libImaging/Crop.c +libImaging/Dib.c +libImaging/Draw.c +libImaging/Effects.c +libImaging/EpsEncode.c +libImaging/Except.c +libImaging/File.c +libImaging/Fill.c +libImaging/Filter.c +libImaging/FliDecode.c +libImaging/Geometry.c +libImaging/GetBBox.c +libImaging/GifDecode.c +libImaging/GifEncode.c +libImaging/Gif.h +libImaging/HexDecode.c +libImaging/Histo.c +libImaging/Imaging.h +libImaging/ImDib.h +libImaging/ImPlatform.h +libImaging/JpegDecode.c +libImaging/JpegEncode.c +libImaging/Jpeg.h +libImaging/LzwDecode.c +libImaging/Lzw.h +libImaging/Matrix.c +libImaging/ModeFilter.c +libImaging/MspDecode.c +libImaging/Negative.c +libImaging/Offset.c +libImaging/Pack.c +libImaging/PackDecode.c +libImaging/Palette.c +libImaging/Paste.c +libImaging/PcdDecode.c +libImaging/PcxDecode.c +libImaging/PcxEncode.c +libImaging/Point.c +libImaging/Quant.c +libImaging/QuantDefines.h +libImaging/Quant.h +libImaging/QuantHash.c +libImaging/QuantHash.h +libImaging/QuantHeap.c +libImaging/QuantHeap.h +libImaging/QuantTypes.h +libImaging/RankFilter.c +libImaging/RawDecode.c +libImaging/RawEncode.c +libImaging/Raw.h +libImaging/Storage.c +libImaging/SunRleDecode.c +libImaging/TgaRleDecode.c +libImaging/Unpack.c +libImaging/UnpackYCC.c +libImaging/XbmDecode.c +libImaging/XbmEncode.c +libImaging/ZipDecode.c +libImaging/ZipEncode.c +libImaging/Zip.h -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20060119/0a2e87b7/attachment-0001.htm From rus_poves_moreno at yahoo.es Tue Jan 17 00:00:01 2006 From: rus_poves_moreno at yahoo.es (Rus Poves Moreno) Date: Mon, 16 Jan 2006 23:00:01 -0000 Subject: [Image-SIG] convert .jpg to .eps with PythonMagick Message-ID: <20060116225319.31769.qmail@web26205.mail.ukl.yahoo.com> Hi, sorry for my bad english, but I'm from Spain :-) I downloaded the package PythonMagick, cause I want to convert images jpg to eps, i need it to a proyect. I have Debian, but I don't know how to install this package, because there is not documentation about this. Anyone know about it? Thanks. Rus --------------------------------- LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y m?viles desde 1 c?ntimo por minuto. http://es.voice.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20060116/7af7dfcf/attachment-0001.html