From bill@janssen.org Thu Feb 1 04:24:48 2001 From: bill@janssen.org (Bill Janssen) Date: Wed, 31 Jan 2001 20:24:48 PST Subject: [Image-SIG] Palm extensions for PIL available Message-ID: <01Jan31.202456pst."3448"@watson.parc.xerox.com> Fredrik, I've completed some work on extending PIL 1.1.1 to support raw Palm image quantization and output. You can find a gzipped tar file containing a patch and a new ImagePlugin at ftp://ftp.parc.xerox.com/transient/janssen/PILpalm.tgz. The README in that file explains how to apply the support to a vanilla PIL 1.1.1 source distribution. The most interesting thing to you, I think, is the extension of the quantize method, via a new keyword, to support quantizing the colors of an image to a specified palette. That palette is specified by passing an image containing the desired palette. There were a number of ways to add this functionality; this seemed to be the approach that involved the minimal change to PIL. If you'd like to discuss any philosophical or technical issues about how I've done this, I'd be happy to do so. I'd appreciate it if this got into the next release of PIL; of course your release schedule is your own. Regards, Bill From RoD@qnet20.com Thu Feb 1 23:23:44 2001 From: RoD@qnet20.com (Rod) Date: Thu, 1 Feb 2001 23:23:44 Subject: [Image-SIG] Diamond x Jungle Carpet Python Message-ID: <20010202072407.A00E5F4D5@mail.python.org> I have several Diamond x Jungle Capret Pythons for SALE. Make me an offer.... Go to: www.qnet20.com From chris@cogdon.org Thu Feb 8 08:08:00 2001 From: chris@cogdon.org (Chris Cogdon) Date: Thu, 8 Feb 2001 00:08:00 -0800 (PST) Subject: [Image-SIG] Help with ImageMagick-Python Message-ID: For the moment, I'm having to drop PIL due to a number of small, but annoying problems. I'll quite happily pick it up again once those problems are solved, but I need a imaging library very shortly. I'm trying to get python talkingwith ImageMagick, but cant seem to get the swig interface working properly. Eg: What is this 'Imaging.h' header? Has anyone out there successfully employed python and ImageMagick? If so, I'm more than happy to put the effort into getting a module running that anyone can use. Perhaps even pick up maintaining Zack's project if he doesn't want to do it himself. Thanks in advance. ("`-/")_.-'"``-._ Chris Cogdon . . `; -._ )-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL From scott@portalsmith.net Thu Feb 8 14:13:48 2001 From: scott@portalsmith.net (Scott Russell) Date: Thu, 08 Feb 2001 09:13:48 -0500 Subject: [Image-SIG] GIF or PNG transparency Message-ID: I think this is a FAQ, but since I can't find any solid answers in the archive, I was hoping for a definitive answer. How do you create transparent images in PIL? I'm hoping for IE-happy PNGs, but can live with GIFs. Here is the method I'm trying now (I've tried several, but this one was reccomended in another archive entry) >>> import Image >>> img = Image.new("RGB",(100,100),(0,100,200)) >>> img = img.convert("RGBA") >>> img.paste((100,0,200,255),(0,0,100,100)) >>> img.paste((0,0,0,0),(20,20,80,80)) >>> img.save("region-13.png") The 'transparent' sections come up gray in IE. I wonder if the real problem is on the PIL side or the client side. Either way, I need PIL to satisfy the client, no matter how broken the client may be. Also, simply opening a transparent GIF, Drawing on it and saving it results in seemingly random colors placed in the transparent space. Does PIL support transparent images? Can someone provide a tested example? Platform: RH6.2, python 2.0, PIL 1.1.1 (Win32 will also be a target eventually) Thanks in advance, - Scott From echuck@mindspring.com Thu Feb 8 15:23:02 2001 From: echuck@mindspring.com (Chuck Esterbrook) Date: Thu, 08 Feb 2001 10:23:02 -0500 Subject: [Image-SIG] Help with ImageMagick-Python In-Reply-To: Message-ID: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> At 12:08 AM 2/8/2001 -0800, Chris Cogdon wrote: >Has anyone out there successfully employed python and ImageMagick? If so, >I'm more than happy to put the effort into getting a module running that >anyone can use. Perhaps even pick up maintaining Zack's project if he >doesn't want to do it himself. I'm definitely interested in this, but haven't had any time to put into it yet. I too need an imaging library and PIL currently has too many problems for serious use. -Chuck From kent@springfed.com Thu Feb 8 15:57:44 2001 From: kent@springfed.com (Kent Tenney) Date: Thu, 8 Feb 2001 09:57:44 -0600 Subject: [Image-SIG] Only just now getting on the PIL Message-ID: <200102081658.KAA23095@zealot.baysat.net> Howdy, I installed http://w1.132.telia.com/~u13208596/pil/pil111py.zip and http://w1.132.telia.com/~u13208596/pil/_imaging20.dll from http://w1.132.telia.com/~u13208596/pil/index.htm I put _imaging.dll in \python20\DLL also in \windows\system test_image.py import pil.Image infile =3D 'c:\\python20\\tt.jpg' im =3D pil.Image.open(infile) >>> im.size (800, 600) >>> im.rotate(90) Traceback (innermost last): File "", line 1, in ? File "Image.py", line 644, in rotate File "ImageFile.py", line 125, in load File "ImageFile.py", line 175, in load_prepare File "Image.py", line 43, in __getattr__ ImportError: The _imaging C module is not installed What do I need to do? Thanks, Kent From echuck@mindspring.com Thu Feb 8 16:20:45 2001 From: echuck@mindspring.com (Chuck Esterbrook) Date: Thu, 08 Feb 2001 11:20:45 -0500 Subject: [Image-SIG] Only just now getting on the PIL In-Reply-To: <200102081658.KAA23095@zealot.baysat.net> Message-ID: <5.0.2.1.0.20010208111948.02148250@mail.mindspring.com> Did you really rename _imaging20.dll to _imaging.dll? That's what I forgot the first time. -Chuck At 09:57 AM 2/8/2001 -0600, Kent Tenney wrote: >Howdy, > >I installed http://w1.132.telia.com/~u13208596/pil/pil111py.zip >and http://w1.132.telia.com/~u13208596/pil/_imaging20.dll >from http://w1.132.telia.com/~u13208596/pil/index.htm > >I put _imaging.dll in \python20\DLL also in \windows\system > >test_image.py >import pil.Image >infile = 'c:\\python20\\tt.jpg' >im = pil.Image.open(infile) > > >>> im.size >(800, 600) > > >>> im.rotate(90) >Traceback (innermost last): > File "", line 1, in ? > File "Image.py", line 644, in rotate > File "ImageFile.py", line 125, in load > File "ImageFile.py", line 175, in load_prepare > File "Image.py", line 43, in __getattr__ >ImportError: The _imaging C module is not installed > >What do I need to do? > >Thanks, >Kent > > >_______________________________________________ >Image-SIG maillist - Image-SIG@python.org >http://mail.python.org/mailman/listinfo/image-sig From kent@springfed.com Thu Feb 8 17:13:00 2001 From: kent@springfed.com (Kent Tenney) Date: Thu, 8 Feb 2001 11:13:00 -0600 Subject: [Image-SIG] Only just now getting on the PIL In-Reply-To: <5.0.2.1.0.20010208111948.02148250@mail.mindspring.com> Message-ID: <200102081813.MAA29092@zealot.baysat.net> It's renamed. Directory of C:\Python20\DLLs\_im* 2/07/01 5:06a 257,024 _imaging.dll On Thu, 08 Feb 2001 11:20:45 -0500, Chuck Esterbrook wrote: Did you really rename _imaging20.dll to _imaging.dll? That's what= I forgot the first time. -Chuck At 09:57 AM 2/8/2001 -0600, Kent Tenney wrote: >Howdy, > >I installed http://w1.132.telia.com/~u13208596/pil/pil111py.zip >and http://w1.132.telia.com/~u13208596/pil/_imaging20.dll >from http://w1.132.telia.com/~u13208596/pil/index.htm > >I put _imaging.dll in \python20\DLL also in \windows\system > >test_image.py >import pil.Image >infile =3D 'c:\\python20\\tt.jpg' >im =3D pil.Image.open(infile) > > >>> im.size >(800, 600) > > >>> im.rotate(90) >Traceback (innermost last): > File "", line 1, in ? > File "Image.py", line 644, in rotate > File "ImageFile.py", line 125, in load > File "ImageFile.py", line 175, in load_prepare > File "Image.py", line 43, in __getattr__ >ImportError: The _imaging C module is not installed > >What do I need to do? > >Thanks, >Kent > > >_______________________________________________ >Image-SIG maillist - Image-SIG@python.org >http://mail.python.org/mailman/listinfo/image-sig _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig From fredrik@pythonware.com Thu Feb 8 17:50:30 2001 From: fredrik@pythonware.com (Fredrik Lundh) Date: Thu, 8 Feb 2001 18:50:30 +0100 Subject: [Image-SIG] Only just now getting on the PIL References: <200102081658.KAA23095@zealot.baysat.net> Message-ID: <00bd01c091f7$a951e4c0$e46940d5@hagrid> Kent wrote: > I put _imaging.dll in \python20\DLL also in \windows\system is \python20\DLL on your Python path? try this: >>> import sys >>> sys.path ['', 'c:\\python20\\DLLs', 'c:\\python20\\Lib', /.../] (it's usually "DLLs", not "DLL". if you had to create the directory yourself, it's not the right one ;-). Cheers /F From fredrik@pythonware.com Thu Feb 8 18:00:04 2001 From: fredrik@pythonware.com (Fredrik Lundh) Date: Thu, 8 Feb 2001 19:00:04 +0100 Subject: [Image-SIG] Help with ImageMagick-Python References: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> Message-ID: <00cb01c091f8$f7bc3ec0$e46940d5@hagrid> Chuck wrote: > I'm definitely interested in this, but haven't had any time to put into it > yet. I too need an imaging library and PIL currently has too many problems > for serious use. how about *reporting* the bugs instead of whining? Cheers /F From fredrik@pythonware.com Thu Feb 8 18:07:06 2001 From: fredrik@pythonware.com (Fredrik Lundh) Date: Thu, 8 Feb 2001 19:07:06 +0100 Subject: [Image-SIG] GIF or PNG transparency References: Message-ID: <011801c091f9$f4417a70$e46940d5@hagrid> Scott wrote: > The 'transparent' sections come up gray in IE. I wonder if the real > problem is on the PIL side or the client side. I'm pretty sure that's an IE problem... > Also, simply opening a transparent GIF, Drawing on it and saving it > results in seemingly random colors placed in the transparent space. ...but this is a PIL problem. The GIF codec in 1.1.1 can read but not write the transparency attribute. I think this is fixed in the current codebase; stay tuned for a patch. Cheers /F From echuck@mindspring.com Thu Feb 8 18:17:13 2001 From: echuck@mindspring.com (Chuck Esterbrook) Date: Thu, 08 Feb 2001 13:17:13 -0500 Subject: [Image-SIG] Help with ImageMagick-Python In-Reply-To: <00cb01c091f8$f7bc3ec0$e46940d5@hagrid> References: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> Message-ID: <5.0.2.1.0.20010208131242.021c1440@mail.mindspring.com> At 07:00 PM 2/8/2001 +0100, Fredrik Lundh wrote: >Chuck wrote: > > I'm definitely interested in this, but haven't had any time to put into it > > yet. I too need an imaging library and PIL currently has too many problems > > for serious use. > >how about *reporting* the bugs instead of whining? > >Cheers /F That's pretty insulting. For every product I use, I develop an impression, good or bad. Echoing someone else's impression of product X and desire to use product Y is not a whine. Second of all, I have reported some of the problems in the past, such as the quality of image resizing. Jeers /C From akuchlin@mems-exchange.org Thu Feb 8 18:45:20 2001 From: akuchlin@mems-exchange.org (Andrew Kuchling) Date: Thu, 8 Feb 2001 13:45:20 -0500 Subject: [Image-SIG] Help with ImageMagick-Python In-Reply-To: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com>; from echuck@mindspring.com on Thu, Feb 08, 2001 at 10:23:02AM -0500 References: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> Message-ID: <20010208134520.A2482@thrak.cnri.reston.va.us> On Thu, Feb 08, 2001 at 10:23:02AM -0500, Chuck Esterbrook wrote: >I'm definitely interested in this, but haven't had any time to put into it >yet. I too need an imaging library and PIL currently has too many problems >for serious use. Really? To me PIL is the only contender I can consider, because it has more features than any of its competitors, and because it's not too difficult to write C extensions that create new Image objects (even though this is documented, it wasn't hard to figure out from the source). That's why I wrote the SANE and PXC-200 modules, which are PIL add-ons of a sort; nothing comparable seemed to be possible with other packages such as the gd module. Fredrik, you're busy with other things such as PythonWorks. Is PIL development still a source of revenue for you? Have you considered opening up the process (SourceForge, something similar)? --amk From fredrik@pythonware.com Thu Feb 8 18:54:01 2001 From: fredrik@pythonware.com (Fredrik Lundh) Date: Thu, 8 Feb 2001 19:54:01 +0100 Subject: [Image-SIG] Help with ImageMagick-Python References: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> <5.0.2.1.0.20010208131242.021c1440@mail.mindspring.com> Message-ID: <016201c09200$826f9560$e46940d5@hagrid> Chuck Esterbrook wrote: > >how about *reporting* the bugs instead of whining? > > > >Cheers /F > > That's pretty insulting. And saying that a piece of software isn't suitable for serious use is okay? Lots of people (including us) are using PIL in mission- critical 24/7 high-volume processing systems. Sounds pretty serious to me... On the other hand, reading your post again, you talked about problems, not bugs... > Second of all, I have reported some of the problems in the > past, such as the quality of image resizing. ...and missing features can be problematic, of course. The resampling filters in the current PIL release work well for transforms and upsampling, but not for large downsamplings. Did you try the proposed workarounds, btw? Cheers /F From kent@springfed.com Thu Feb 8 19:13:31 2001 From: kent@springfed.com (Kent Tenney) Date: Thu, 8 Feb 2001 13:13:31 -0600 Subject: [Image-SIG] Only just now getting on the PIL In-Reply-To: <00bd01c091f7$a951e4c0$e46940d5@hagrid> Message-ID: <200102082014.OAA02980@zealot.baysat.net> That Was It, My path is wrong, it has 'E:' drive for the \python20\dlls= directory How do I correct my path? Thanks, Kent ['', 'c:\\python20\\DLLs', 'c:\\python20\\Lib', /.../] (it's usually "DLLs", not "DLL". if you had to create the directory yourself, it's not the right one ;-). Cheers /F From echuck@mindspring.com Thu Feb 8 19:35:22 2001 From: echuck@mindspring.com (Chuck Esterbrook) Date: Thu, 08 Feb 2001 14:35:22 -0500 Subject: [Image-SIG] Help with ImageMagick-Python In-Reply-To: <016201c09200$826f9560$e46940d5@hagrid> References: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> <5.0.2.1.0.20010208131242.021c1440@mail.mindspring.com> Message-ID: <5.0.2.1.0.20010208143022.021da2f0@mail.mindspring.com> At 07:54 PM 2/8/2001 +0100, Fredrik Lundh wrote: >Chuck Esterbrook wrote: > > >how about *reporting* the bugs instead of whining? > > > > > >Cheers /F > > > > That's pretty insulting. > >And saying that a piece of software isn't suitable for >serious use is okay? > >Lots of people (including us) are using PIL in mission- >critical 24/7 high-volume processing systems. Sounds >pretty serious to me... > >On the other hand, reading your post again, you talked >about problems, not bugs... > > > Second of all, I have reported some of the problems in the > > past, such as the quality of image resizing. > >...and missing features can be problematic, of course. > >The resampling filters in the current PIL release work >well for transforms and upsampling, but not for large >downsamplings. > >Did you try the proposed workarounds, btw? > >Cheers /F Not yet. I haven't done anything with any image processing for the past few weeks, whether it's trying work-arounds or other packages. FYI, my other PIL problems are: * Lack of file support. Eventually I'll get to posting the test suite that I was given by a graphic designer. * And if I remember right: I couldn't save a GIF to JPEG. Something about the palette not being right. I was hoping PIL would do the "right thing". There may be a work around for that. Cheers /C From fredrik@pythonware.com Thu Feb 8 19:46:11 2001 From: fredrik@pythonware.com (Fredrik Lundh) Date: Thu, 8 Feb 2001 20:46:11 +0100 Subject: [Image-SIG] Only just now getting on the PIL References: <200102082014.OAA02980@zealot.baysat.net> Message-ID: <01ee01c09207$cb7d0b50$e46940d5@hagrid> Kent Tenney wrote: > My path is wrong, it has 'E:' drive for the \python20\dlls directory But the others are correct? Under Windows, Python sets the path based on the location of the Python core DLL, information from the registry, and the PYTHONPATH environment variable. Quick workaround 1: figure out where the standard PYDs/DLLs are: >>> import _socket >>> _socket.__file__ 'c:\\py20\\dlls\\_socket.pyd' and put the _imaging.dll in the same directory. (if the _socket import gives you an import error, your installation is broken. consider reinstalling...) Quick workaround 2: move the _imaging.dll to the same directory as PIL's python library files (e.g. c:\python20\PIL). Cheers /F From klimek@grc.nasa.gov Thu Feb 8 19:30:47 2001 From: klimek@grc.nasa.gov (Bob Klimek) Date: Thu, 08 Feb 2001 14:30:47 -0500 Subject: [Image-SIG] Help with ImageMagick-Python In-Reply-To: <20010208134520.A2482@thrak.cnri.reston.va.us> References: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> Message-ID: <4.2.2.20010208142742.022da608@parrot.grc.nasa.gov> At 01:45 PM 2/8/2001 -0500, you wrote: >Really? To me PIL is the only contender I can consider, because it >has more features than any of its competitors, and because it's not >too difficult to write C extensions that create new Image objects >(even though this is documented, it wasn't hard to figure out from the >source). That's why I wrote the SANE and PXC-200 modules, which are >PIL add-ons of a sort; I wasn't aware of these modules. So I'm not sure if I really need them, but I'm curious. What do they do and where can I find them? Bob --------------------------------------------- Robert B. Klimek NASA Glenn Research Center --------------------------------------------- From fredrik@pythonware.com Thu Feb 8 21:18:34 2001 From: fredrik@pythonware.com (Fredrik Lundh) Date: Thu, 8 Feb 2001 22:18:34 +0100 Subject: [Image-SIG] Re: SANE/PXC-200 modules (was: Help with ImageMagick-Python) References: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> <4.2.2.20010208142742.022da608@parrot.grc.nasa.gov> Message-ID: <025d01c09214$b5242520$e46940d5@hagrid> Bob Klimek wrote: > >That's why I wrote the SANE and PXC-200 modules, which are > >PIL add-ons of a sort; > > I wasn't aware of these modules. So I'm not sure if I really need them, but > I'm curious. What do they do and where can I find them? Sane is shipped with PIL (in the Sane directory...). The PXC driver is here: http://www.mems-exchange.org/software/python/pxc200/ Cheers /F From akuchlin@mems-exchange.org Thu Feb 8 21:30:31 2001 From: akuchlin@mems-exchange.org (Andrew Kuchling) Date: Thu, 8 Feb 2001 16:30:31 -0500 Subject: [Image-SIG] Help with ImageMagick-Python In-Reply-To: <4.2.2.20010208142742.022da608@parrot.grc.nasa.gov>; from klimek@grc.nasa.gov on Thu, Feb 08, 2001 at 02:30:47PM -0500 References: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> <20010208134520.A2482@thrak.cnri.reston.va.us> <4.2.2.20010208142742.022da608@parrot.grc.nasa.gov> Message-ID: <20010208163031.B2482@thrak.cnri.reston.va.us> On Thu, Feb 08, 2001 at 02:30:47PM -0500, Bob Klimek wrote: >>source). That's why I wrote the SANE and PXC-200 modules, which are >>PIL add-ons of a sort; > >I wasn't aware of these modules. So I'm not sure if I really need them, but >I'm curious. What do they do and where can I find them? They're for grabbing data from an output device and returning a bitmap as a PIL object. A PXC-200 is a frame grabber, and SANE is a library supporting various scanners, and, most interesting for our purposes, the Polaroid Digital Microscope Camera. It's actually pretty impressive; using PIL and the PXC-200, a server program written in Python can continuously grab frames from a microscope, JPEG-compress them, and send them out at the rate of 21 frames/sec, which isn't too far off the 24 or 30 frames/sec that would be ideal. (The problem is that Java seems to take .4 sec to *de*compress a JPEG, so our Java client is completely incapable of keeping up with a Python server running at the rate. We have a Python/Tkinter client, only used for demos, that can keep up with that speed. So much for Java being "almost as fast as C++".) --amk From klimek@grc.nasa.gov Thu Feb 8 22:35:09 2001 From: klimek@grc.nasa.gov (Bob Klimek) Date: Thu, 08 Feb 2001 17:35:09 -0500 Subject: [Image-SIG] SANE and PXC-200 modules Message-ID: <4.2.2.20010208171034.022e6df0@parrot.grc.nasa.gov> Thanks to both of you (Andrew and Fredrik) for your replys. This is very interesting and made me think of couple other questions. 1. If I had a Python program with PIL and was using the PXC-200 framegrabber, can I display live (30 f/s) video in a window at 640x480? Assuming that I have a fast computer, say 933 MHz PIII. 2. Can the stuff in question 1 be done under Win2K? I know that this is designed to support Linux and I'm trying to stay Linux compatible but most of my customers use MS-Windows. Bob --------------------------------------------- Robert B. Klimek NASA Glenn Research Center --------------------------------------------- From akuchlin@mems-exchange.org Thu Feb 8 22:47:01 2001 From: akuchlin@mems-exchange.org (Andrew Kuchling) Date: Thu, 8 Feb 2001 17:47:01 -0500 Subject: [Image-SIG] SANE and PXC-200 modules In-Reply-To: <4.2.2.20010208171034.022e6df0@parrot.grc.nasa.gov>; from klimek@grc.nasa.gov on Thu, Feb 08, 2001 at 05:35:09PM -0500 References: <4.2.2.20010208171034.022e6df0@parrot.grc.nasa.gov> Message-ID: <20010208174701.A2737@thrak.cnri.reston.va.us> On Thu, Feb 08, 2001 at 05:35:09PM -0500, Bob Klimek wrote: >1. If I had a Python program with PIL and was using the PXC-200 >framegrabber, can I display live (30 f/s) video in a window at >640x480? Assuming that I have a fast computer, say 933 MHz PIII. I would imagine so, and probably you wouldn't need that fast a machine; displaying it would simply require grabbing an uncompressed frame and then copying it to the screen. My application needs to do JPEG compression, which is CPU-intensive and relatively timeconsuming. (A simple C frame grabber program that just gets an image and discards it can readily do 60 frames/sec on the machine, which is around a 450MHz machine.) >2. Can the stuff in question 1 be done under Win2K? I know that this is >designed to support Linux and I'm trying to stay Linux compatible but most >of my customers use MS-Windows. The PXC-200 driver certainly won't work on Windows. --amk From klimek@grc.nasa.gov Fri Feb 9 16:56:27 2001 From: klimek@grc.nasa.gov (Bob Klimek) Date: Fri, 09 Feb 2001 11:56:27 -0500 Subject: [Image-SIG] SANE and PXC-200 modules In-Reply-To: <20010208174701.A2737@thrak.cnri.reston.va.us> References: <4.2.2.20010208171034.022e6df0@parrot.grc.nasa.gov> <4.2.2.20010208171034.022e6df0@parrot.grc.nasa.gov> Message-ID: <4.2.2.20010209112609.022d73b0@parrot.grc.nasa.gov> Thanks! Its good to know that there is stuff out there that supports Linux, even though it won't help me at this time. Perhaps in the future. Cheers, Bob At 05:47 PM 2/8/2001 -0500, you wrote: >On Thu, Feb 08, 2001 at 05:35:09PM -0500, Bob Klimek wrote: > >1. If I had a Python program with PIL and was using the PXC-200 > >framegrabber, can I display live (30 f/s) video in a window at > >640x480? Assuming that I have a fast computer, say 933 MHz PIII. > >I would imagine so, and probably you wouldn't need that fast a >machine; displaying it would simply require grabbing an uncompressed >frame and then copying it to the screen. My application needs to do >JPEG compression, which is CPU-intensive and relatively timeconsuming. >(A simple C frame grabber program that just gets an image and discards >it can readily do 60 frames/sec on the machine, which is around a >450MHz machine.) > > >2. Can the stuff in question 1 be done under Win2K? I know that this is > >designed to support Linux and I'm trying to stay Linux compatible but most > >of my customers use MS-Windows. > >The PXC-200 driver certainly won't work on Windows. > >--amk > >_______________________________________________ >Image-SIG maillist - Image-SIG@python.org >http://mail.python.org/mailman/listinfo/image-sig --------------------------------------------- Robert B. Klimek NASA Glenn Research Center --------------------------------------------- From scott@portalsmith.net Fri Feb 9 17:48:47 2001 From: scott@portalsmith.net (Scott Russell) Date: Fri, 9 Feb 2001 12:48:47 -0500 Subject: [Image-SIG] GIF or PNG transparency Message-ID: <02d601c092c0$8daec070$09a8653f@portalsmith.net> I don't think this made it to the mailing list, but I wanted to make sure it was stored in the archives for anyone else who may need this. > Scott Russell wrote: > > I was starting to figure that was the problem, but IE shows *some* png files > > fine - lipng.org has lots that work ok - how do I save in whatever format it > > does like? > > P (palette) images seem to work fine, RGBA images don't. > > ::: > > To create palette PNG's, you need: > > 1) an updated version of the PngImagePlugin file, which I > just posted to http://effbot.org/pil > > 2) create a "P" image, and attach a palette to it. see this > article for details: > http://www.pythonware.com/products/pil/articles/creating-palette-images.htm > > 3) pass the "transparency" option to the save method. here's > an example using ImageDraw: > > import Image > import ImageDraw > > im = Image.new("P", (400, 400), 0) > > im.putpalette([ > 0, 0, 0, # transparent/black background > 255, 0, 0, # index 1 is red > 255, 255, 0, # index 2 is yellow > 255, 153, 0, # index 3 is orange > ]) > > d = ImageDraw.ImageDraw(im) > d.setfill(1) > > d.setink(1) > d.polygon((0, 0, 0, 400, 400, 400)) > > d.setink(3) > d.rectangle((100, 100, 300, 300)) > > d.setink(2) > d.ellipse((120, 120, 280, 280)) > > im.save("out.png", transparency=0) > > ::: > > to do the same for an existing image, you can do some- > thing like this: > > mask = ...extract from image... > im = image.convert("P", palette=Image.ADAPTIVE, colors=255) > im.paste(255, None, mask) > im.save(filename, transparency=255) > > ::: > > Hope this helps! > > Cheers /F > > > From chris@cogdon.org Fri Feb 9 19:28:22 2001 From: chris@cogdon.org (Chris Cogdon) Date: Fri, 9 Feb 2001 11:28:22 -0800 (PST) Subject: [Image-SIG] Help with ImageMagick-Python In-Reply-To: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> Message-ID: On Thu, 8 Feb 2001, Chuck Esterbrook wrote: > At 12:08 AM 2/8/2001 -0800, Chris Cogdon wrote: > >Has anyone out there successfully employed python and ImageMagick? If so, > >I'm more than happy to put the effort into getting a module running that > >anyone can use. Perhaps even pick up maintaining Zack's project if he > >doesn't want to do it himself. > > I'm definitely interested in this, but haven't had any time to put into it > yet. I too need an imaging library and PIL currently has too many problems > for serious use. I had a go at starting the interface last night... I think I'll stop. ImageMagick has one of the /worst/ APIs I've seen in my life! :) I might go back to PIL and fix it up. Perhaps take the resampling code from ImageMagick and port it to PIL. ALl the other problems it has should be fairly easy to fix up. I wrote to pythonware to see if they were interested in a contra deal: I supply a test bed (I've got about 70,000 images on my site from 1,300 different people, with who-knows how many different programs writing them), in exchange for access to their development code. I've yet to hear a reply to that one. ("`-/")_.-'"``-._ Chris Cogdon . . `; -._ )-;-,_`) (v_,)' _ )`-.\ ``-' _.- _..-_/ / ((.' ((,.-' ((,/ fL From echuck@mindspring.com Fri Feb 9 19:40:19 2001 From: echuck@mindspring.com (Chuck Esterbrook) Date: Fri, 09 Feb 2001 14:40:19 -0500 Subject: [Image-SIG] Help with ImageMagick-Python In-Reply-To: References: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> Message-ID: <5.0.2.1.0.20010209143702.021d73e0@mail.mindspring.com> At 11:28 AM 2/9/2001 -0800, Chris Cogdon wrote: >On Thu, 8 Feb 2001, Chuck Esterbrook wrote: > > > At 12:08 AM 2/8/2001 -0800, Chris Cogdon wrote: > > >Has anyone out there successfully employed python and ImageMagick? If so, > > >I'm more than happy to put the effort into getting a module running that > > >anyone can use. Perhaps even pick up maintaining Zack's project if he > > >doesn't want to do it himself. > > > > I'm definitely interested in this, but haven't had any time to put into it > > yet. I too need an imaging library and PIL currently has too many problems > > for serious use. > >I had a go at starting the interface last night... I think I'll stop. >ImageMagick has one of the /worst/ APIs I've seen in my life! :) Interesting. The command line for mogrify looked pretty straightforward. I had contemplated creating a Python class that does os.system() *if* ImageMagick has less issues than PIL (more file format support, better resizing, save GIF to JPEG with no hassles). >I might go back to PIL and fix it up. Perhaps take the resampling code >from ImageMagick and port it to PIL. ALl the other problems it has should >be fairly easy to fix up. > >I wrote to pythonware to see if they were interested in a contra deal: I >supply a test bed (I've got about 70,000 images on my site from 1,300 >different people, with who-knows how many different programs writing >them), in exchange for access to their development code. I've yet to hear >a reply to that one. Sounds interesting. That's a heck of a test suite. :-) I also investigated PyGIMP, but I found it a lot harder to get going than PIL. I couldn't even launch GIMP in command-line only mode. Well if you have any more updates, please pass them on. I'll do the same. -Chuck From pbleisch@digitalanvil.com Fri Feb 9 19:51:43 2001 From: pbleisch@digitalanvil.com (Paul Bleisch) Date: Fri, 9 Feb 2001 13:51:43 -0600 Subject: [Image-SIG] PIL, PNG and RGBA Message-ID: <8744DF3002FBD011BDDF000092970B460122BAAC@iron.digitalanvil.com> I've got the following script fragment: ci = Image.open( cfile ).split() ai = Image.open( afile ).convert( "L" ).split() ## get alpha cai = Image.merge( "RGBA", ( ci[0], ci[1], ci[2], ai[0] ) ) cai.save( ofile, "PNG" ) #debug code cais = cai.split(); cais[0].save( ofile + '.R.png', "PNG" ) cais[1].save( ofile + '.G.png', "PNG" ) cais[2].save( ofile + '.B.png', "PNG" ) cais[3].save( ofile + '.A.png', "PNG" ) ai[0].save( afile + '.png', "PNG" ) The intent is to pull the intensity out of the RGB channels of afile and place them in cfile's A channel and output that to ofile. The problem is that no matter how hard I try, the output in ofile (which should be RGBA) is always RGB. I've looked through the code for the PngImagePlugin at http://w1.132.telia.com/~u13208596/pil/PngImagePlugin.py which I am using and it appears to support RGBA output. The debug code outputs the channels of the final image and the sourced alpha channel. All of these PNG files look fine (they are all greyscale obviously). The final ofile PNG is RGB and has no color channels. I'm not really familar with PNG, but it appears to be the only format that writable format that is supported by PIL and supports RGBA, so I seem to be screwed. Can anybody explain why this is happening? Thanks, Paul From klimek@grc.nasa.gov Fri Feb 9 20:03:19 2001 From: klimek@grc.nasa.gov (Bob Klimek) Date: Fri, 09 Feb 2001 15:03:19 -0500 Subject: [Image-SIG] Help with ImageMagick-Python In-Reply-To: References: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> Message-ID: <4.2.2.20010209145315.022d6348@parrot.grc.nasa.gov> At 11:28 AM 2/9/2001 -0800, you wrote: >I had a go at starting the interface last night... I think I'll stop. >ImageMagick has one of the /worst/ APIs I've seen in my life! :) > >I might go back to PIL and fix it up. Perhaps take the resampling code >from ImageMagick and port it to PIL. ALl the other problems it has should >be fairly easy to fix up. I think PIL is a really nice library, so easy to use, although a bit lean. About a year ago I played around with JAI (Java Imaging), before giving up on Java and switching to Python. And my experience with JAI was that it was a major pain in the butt. In comparison, PIL is a pleasure to work with. So anyone who wants to improve PIL, I think its great. Bob --------------------------------------------- Robert B. Klimek NASA Glenn Research Center --------------------------------------------- From fredrik@pythonware.com Fri Feb 9 22:26:08 2001 From: fredrik@pythonware.com (Fredrik Lundh) Date: Fri, 9 Feb 2001 23:26:08 +0100 Subject: [Image-SIG] Help with ImageMagick-Python References: <5.0.2.1.0.20010208102215.027e4600@mail.mindspring.com> <5.0.2.1.0.20010209143702.021d73e0@mail.mindspring.com> Message-ID: <01d201c092e7$4dbbd530$e46940d5@hagrid> > Perhaps take the resampling code from ImageMagick > and port it to PIL. does anyone happen to know which resampling algorithm they're using? Cheers /F From lale@zing.com Sat Feb 10 16:17:04 2001 From: lale@zing.com (Ilariu Raducan) Date: Sat, 10 Feb 2001 16:17:04 -0000 Subject: [Image-SIG] How to save GIF files in 4 bit mode [PIL] Message-ID: <00a701c0937c$e84bbf80$e802a8c0@lale> Hi, I tried to save an converted image with 16 colors in GIF format but it is too big 4,7kbytes. The same image converted with Gimp has only 2k. Can I do something about that? Regards, Lale From borrini@netbuilder.it Mon Feb 12 10:29:44 2001 From: borrini@netbuilder.it (Giulio Borrini - Netbuilder) Date: Mon, 12 Feb 2001 11:29:44 +0100 Subject: [Image-SIG] extracting frame from movie? Message-ID: <022701c094de$b94dad20$01c8a8c0@it.tin.it> is it possibile with pil or any other lib to extract a frame from an avi movie? i need it to make a preview of some movies. thanks in advance ----------------------------------------------------------------- Giulio Borrini Web Programmer Netbuilder snc Parma, Italy ----------------------------------------------------------------- From douglas@paradise.net.nz Tue Feb 13 20:59:34 2001 From: douglas@paradise.net.nz (Douglas Bagnall) Date: Wed, 14 Feb 2001 09:59:34 +1300 Subject: [Image-SIG] How to save GIF files in 4 bit mode [PIL] In-Reply-To: <00a701c0937c$e84bbf80$e802a8c0@lale> Message-ID: <3A8A5706.22499.1A8D32@localhost> hi, >From: "Ilariu Raducan" > I tried to save an converted image with 16 colors in GIF format but it is > too big 4,7kbytes. > The same image converted with Gimp has only 2k. > Can I do something about that? > This can be fixed on unix machines by using the standard netpbm library for making gifs. If you look into GifImagePlugin.py in the PIL directory, you'll find comments telling you which lines to change. It really is easy, if you have netpbm installed. You can also adapt the function there to make transparent gifs, code for which I posted a wee while ago. I'm not sure how possible it is to write new code that properly compresses gifs, given the unco-operative stance that Unisys has over its patents. Douglas From dirk.engelmann@iwr.uni-heidelberg.de Thu Feb 15 15:56:25 2001 From: dirk.engelmann@iwr.uni-heidelberg.de (Dirk Engelmann) Date: Thu, 15 Feb 2001 10:56:25 -0500 Subject: [Image-SIG] HDF data format Message-ID: <20010215105625.C31089@lem> Hi! I'm interested if someone has experiences with the HDF data format ? How usefull is it and how complicated would be an HDF interface i.e. for PIL ? Thanks! Dirk Engelmann From fredrik@pythonware.com Thu Feb 15 10:15:25 2001 From: fredrik@pythonware.com (Fredrik Lundh) Date: Thu, 15 Feb 2001 11:15:25 +0100 Subject: [Image-SIG] HDF data format References: <20010215105625.C31089@lem> Message-ID: <05f901c09738$37da9ad0$e46940d5@hagrid> Dirk Engelmann wrote: > How usefull is it and how complicated would be an > HDF interface i.e. for PIL ? ftp://hdf.ncsa.uiuc.edu/HDF5/contrib/hl-hdf5/README.html "HL-HDF is a high level interface to the Hierarchical Data Format, version 5, "This distribution contains HL-HDF source code, binaries for a number of computer platforms, and associated documentation. It also contains an interface to the Python programming language, called PyHL. Cheers /F From kent@springfed.com Fri Feb 16 12:30:02 2001 From: kent@springfed.com (Kent Tenney) Date: Fri, 16 Feb 2001 06:30:02 -0600 Subject: [Image-SIG] using PyGimp on Win32 Message-ID: <200102161330.HAA25196@zealot.baysat.net> Howdy, I am very interested in the Gimp, and would like to attempt scripting in Python. I looked around and am still unclear as to what steps are required to set this up, and if it's even practical. If anyone has a brief how-to about this I'd be interested. Thanks, Kent From odeckmyn.list@teaser.fr Fri Feb 16 13:55:21 2001 From: odeckmyn.list@teaser.fr (Olivier Deckmyn) Date: Fri, 16 Feb 2001 14:55:21 +0100 Subject: [Image-SIG] PIL Fonts Message-ID: <008301c09820$1a5e7fb0$0d00000a@ODECKMYN2K> Hi all ! Is there a way to use TrueType or PostScript font with ImageDraw in PIL ? I know it exists a conversion tool to make PIL fonts from X fonts...But I don't have any "nice" X font :( Any idea ? ps : is the python t1lib project discontinued ? --- We are Micro$oft. You will be assimilated. Resistance is futile. From David.Detlefsen@bms.com Mon Feb 19 21:14:31 2001 From: David.Detlefsen@bms.com (David J Detlefsen) Date: Mon, 19 Feb 2001 16:14:31 -0500 Subject: [Image-SIG] Configuring Ghostscript & PIL on a Macintosh Message-ID: How do you set up python so that it knows about ghostscript? I'm interested in using PIL and Python 2 on a macintosh and I get the following error in the interpreter: >>> im2.save("dogchow:postscript.jpeg") Traceback (most recent call last): File "", line 1, in ? File "dogchow:applications:python 2.0:extensions:imaging:pil:Image.py", line 656, in save self.load() File "dogchow:applications:python 2.0:extensions:imaging:pil:EpsImagePlugin.py", line 246, in load self.im = Ghostscript(self.tile, self.size, self.fp) File "dogchow:applications:python 2.0:extensions:imaging:pil:EpsImagePlugin.py", line 62, in Ghostscript gs = os.popen(command, "w") Dave From wsryu@fas.harvard.edu Tue Feb 20 12:57:51 2001 From: wsryu@fas.harvard.edu (William Ryu) Date: Tue, 20 Feb 2001 07:57:51 -0500 Subject: [Image-SIG] Image.getdata()? [PIL] Message-ID: <4.3.2.7.2.20010220075743.028fb7b8@pop.fas.harvard.edu> Hello:

I have a question about PIL's Image.getdata() method. The manual states:

getdata(). Returns the contents of a the image as a sequence object containing pixel values. The sequence object is flattened, so that values for line one follows directly after the values for line zero, and so on.

But when I tested this this does not seem to be the case. My test image is a TIFF file with a simple black line (value = 0) on a white background (255). The code below doesn't return the correct data array. The zeros are all in the wrong places, and from their jumbled pattern it doesn't seem to be a simple swapping of the axes.

        im = Image.open('test.tif')
        size = im.size
        data = im.getdata()
        flatarray = array(flatdata)
        return reshape(flatarray, size)

Im.show() works just fine however. It's late, so I'm hoping that I'm not missing the obvious, but isn't this how getdata() should work?

Would appreciate some help. thanks,

-willryu
From Aureli.Soria_Frisch@ipk.fhg.de Tue Feb 20 15:00:53 2001 From: Aureli.Soria_Frisch@ipk.fhg.de (Aureli Soria Frisch) Date: Tue, 20 Feb 2001 16:00:53 +0100 Subject: [Image-SIG] Image.getdata()? [PIL] In-Reply-To: <4.3.2.7.2.20010220075743.028fb7b8@pop.fas.harvard.edu> Message-ID: You can use the method asarray() from Numeric module. That works fine (at least for grayvalue images). Regards, Aureli At 7:57 Uhr -0500 20.02.2001, William Ryu wrote: > Hello: I have a question about PIL's Image.getdata() method. The manual >states: getdata(). Returns the ################################# Aureli Soria Frisch Fraunhofer IPK Dept. Pattern Recognition post: Pascalstr. 8-9, 10587 Berlin, Germany e-mail:aureli@ipk.fhg.de fon: +49 30 39 00 61 50 fax: +49 30 39 17 517 ################################# From fredrik@pythonware.com Tue Feb 20 15:14:13 2001 From: fredrik@pythonware.com (Fredrik Lundh) Date: Tue, 20 Feb 2001 16:14:13 +0100 Subject: [Image-SIG] Image.getdata()? [PIL] References: <4.3.2.7.2.20010220075743.028fb7b8@pop.fas.harvard.edu> Message-ID: <012201c09b4f$ca7e7260$0900a8c0@SPIFF> William Ryu wrote: > But when I tested this this does not seem to be the case. > > im = Image.open('test.tif') > size = im.size > data = im.getdata() > flatarray = array(flatdata) > return reshape(flatarray, size) does this help: return reshape(flatarray, (size[1], size[0])) Cheers /F From wsryu@fas.harvard.edu Wed Feb 21 02:01:14 2001 From: wsryu@fas.harvard.edu (William Ryu) Date: Tue, 20 Feb 2001 21:01:14 -0500 Subject: [Image-SIG] Image.getdata()? [PIL] In-Reply-To: <012201c09b4f$ca7e7260$0900a8c0@SPIFF> References: <4.3.2.7.2.20010220075743.028fb7b8@pop.fas.harvard.edu> Message-ID: <4.3.2.7.2.20010220210010.00b65398@pop.fas.harvard.edu> Yes it does. Damnit, I should have been able to see that. Many thanks Fredrik!

-willryu

At 04:14 PM 2/20/2001 +0100, Fredrik Lundh wrote:
William Ryu wrote:
> But when I tested this this does not seem to be the case.
>
>        im = Image.open('test.tif')
>        size = im.size
>        data = im.getdata()
>        flatarray = array(flatdata)
>        return reshape(flatarray, size)

does this help:

    return reshape(flatarray, (size[1], size[0]))

Cheers /F
From 2jerry@writeme.com Fri Feb 23 00:27:40 2001 From: 2jerry@writeme.com (Jerry) Date: Fri, 23 Feb 2001 01:27:40 +0100 Subject: [Image-SIG] bug founded in convert methode Message-ID: <000701c09d2f$7043f720$01010101@jerry133> This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C09D37.D03B8E60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, just a small electronics yellow paper to say (it's maybe the 1000th = times you ear that ?) that in line 405 of Image.py change self.palette.mode by self.palette.rawmode will be pleased .. thank again for that cool PIL module ...=20 I'm actually trying to developpe few images recognition methodes like = "find an icon in image" and the other part "find what is the icone" any tips for me ? ( I red that could be included in a package named = PIL Plus ?). bye bye,=20 Jerry the foolish dracomorpheus . ------=_NextPart_000_0004_01C09D37.D03B8E60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
just a small electronics yellow = paper to say=20 (it's maybe the 1000th times you ear that ?) that in line 405 of=20 Image.py
change self.palette.mode by = self.palette.rawmode=20 will be pleased ..
 
thank again for that cool PIL module = ... 
I'm actually trying to developpe few = images=20 recognition methodes like "find an icon in image" and the = other part=20 "find what is the icone"
  any tips for me ? ( I red = that could be=20 included in a package named PIL Plus ?).
 
bye bye,
Jerry the foolish dracomorpheus=20 .
------=_NextPart_000_0004_01C09D37.D03B8E60-- From fredrik@effbot.org Fri Feb 23 21:25:20 2001 From: fredrik@effbot.org (Fredrik Lundh) Date: Fri, 23 Feb 2001 22:25:20 +0100 Subject: [Image-SIG] bug founded in convert methode References: <000701c09d2f$7043f720$01010101@jerry133> Message-ID: <04fb01c09ddf$217ef490$e46940d5@hagrid> Jerry wrote: > just a small electronics yellow paper to say (it's maybe the > 1000th times you ear that ?) that in line 405 of Image.py > change self.palette.mode by self.palette.rawmode will be pleased .. sorry, but this is way too little information. - what version are you using? - what is not working without this patch? can you post a sample program that doesn't work without it? - can you post a few more lines from your version of Image.py? diff -u or diff -c patches are preferred. (in the current code base, line 405 should most definitely use palette.mode, not palette.rawmode. same goes for the use of palette.mode in the convert function. maybe the bug is else- where?) Cheers /F From hany.farag@starmedia.net Tue Feb 27 15:44:16 2001 From: hany.farag@starmedia.net (Hany Farag) Date: Tue, 27 Feb 2001 10:44:16 -0500 Subject: [Image-SIG] Imaging-1.1.1.tar.gz Message-ID: <945A5180E4D0D311BF620008C7A457B909271D6C@nyexch01.starmedia.net> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0A0D4.24536550 Content-Type: text/plain; charset="iso-8859-1" hi, i followed all the instructions at http://www.python.org/sigs/image-sig/Imaging-0.2b4-README to install and configure the image Lib but it is not working . I'm getting this error : bash-2.02$ sudo -u bin make gcc -O -I./. -I/usr/local/include -DHAVE_CONFIG_H -c coretest.c -o coretest.o In file included from Imaging.h:22, from coretest.c:19: ImPlatform.h:19: #error Sorry, this library assumes ANSI header files. ImPlatform.h:37: #error Cannot find required 32-bit integer type ImPlatform.h:49: #error Cannot find required 32-bit floating point type make: *** [coretest.o] Error 1 bash-2.02$ I'm trying to install on SunOS 5.7 thanks ------_=_NextPart_001_01C0A0D4.24536550 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Imaging-1.1.1.tar.gz

hi,
i followed all the instructions at http://www.python.org/sigs/image-sig/Imaging-0.2b4-REA= DME to install and configure the image Lib but it is not working = .

I'm getting this error :

bash-2.02$ sudo -u bin make
gcc -O -I./. -I/usr/local/include = -DHAVE_CONFIG_H   -c coretest.c -o coretest.o
In file included from = Imaging.h:22,
         &nb= sp;       from coretest.c:19:
ImPlatform.h:19: #error Sorry, this = library assumes ANSI header files.
ImPlatform.h:37: #error Cannot find = required 32-bit integer type
ImPlatform.h:49: #error Cannot find = required 32-bit floating point type
make: *** [coretest.o] Error 1
bash-2.02$

I'm trying to install on  SunOS = 5.7

thanks


------_=_NextPart_001_01C0A0D4.24536550-- From fredrik@pythonware.com Wed Feb 28 10:14:13 2001 From: fredrik@pythonware.com (Fredrik Lundh) Date: Wed, 28 Feb 2001 11:14:13 +0100 Subject: [Image-SIG] Imaging-1.1.1.tar.gz References: <945A5180E4D0D311BF620008C7A457B909271D6C@nyexch01.starmedia.net> Message-ID: <009901c0a16f$35ace920$0900a8c0@SPIFF> Imaging-1.1.1.tar.gzHany Farag wrote: > i followed all the instructions at http://www.python.org/sigs/image-sig/Imaging-0.2b4-README > to install and configure the image Lib but it is not working . if you're using 1.1.1, it's probably better to use the README in the source directory. > bash-2.02$ sudo -u bin make > gcc -O -I./. -I/usr/local/include -DHAVE_CONFIG_H -c coretest.c -o coretest.o > In file included from Imaging.h:22, > from coretest.c:19: > ImPlatform.h:19: #error Sorry, this library assumes ANSI header files. > ImPlatform.h:37: #error Cannot find required 32-bit integer type > ImPlatform.h:49: #error Cannot find required 32-bit floating point type > make: *** [coretest.o] Error 1 did ./configure run successfully? (if you're not sure, check config.log) what does ImConfig.h look like? Cheers /F From fredrik@pythonware.com Wed Feb 28 10:34:54 2001 From: fredrik@pythonware.com (Fredrik Lundh) Date: Wed, 28 Feb 2001 11:34:54 +0100 Subject: [Image-SIG] bug founded in convert methode References: <000701c09d2f$7043f720$01010101@jerry133> <04fb01c09ddf$217ef490$e46940d5@hagrid> Message-ID: <00b301c0a172$18f44820$0900a8c0@SPIFF> > Jerry wrote: > > just a small electronics yellow paper to say (it's maybe the > > 1000th times you ear that ?) that in line 405 of Image.py > > change self.palette.mode by self.palette.rawmode will be pleased .. following up: further correspondence with "Jerry" revealed that the problem only occurs if you call the "convert" method on a "P" image read from disk, and leave out the mode argument. According to the documentation, this should pick a mode "so that all information in the image and the palette can be represented without a palette." According to the 1.1 code, this doesn't work. Use convert("RGB") instead. Cheers /F From hany.farag@starmedia.net Wed Feb 28 17:22:53 2001 From: hany.farag@starmedia.net (Hany Farag) Date: Wed, 28 Feb 2001 12:22:53 -0500 Subject: [Image-SIG] (no subject) Message-ID: <945A5180E4D0D311BF620008C7A457B909271D75@nyexch01.starmedia.net> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0A1AB.15442180 Content-Type: text/plain; charset="iso-8859-1" hi, does anyone know what this header file do and where can i find it. I think i'm missing this file !. thanks ------_=_NextPart_001_01C0A1AB.15442180 Content-Type: text/html; charset="iso-8859-1"

hi,
does anyone know what this header file do and where can i find it. I think i'm missing this file !.

thanks

------_=_NextPart_001_01C0A1AB.15442180--