From Zachary_Roadhouse@brown.edu Sun Jan 11 21:30:01 1998 From: Zachary_Roadhouse@brown.edu (Zachary_Roadhouse@brown.edu) Date: Sun, 11 Jan 1998 16:30:01 -0500 (EST) Subject: [IMAGE-SIG] Compiling 0.3a1 on SGI Message-ID: Hi! I'm trying to compile PIL 0.3a1 for Python 1.5 under Irix 6.2. I keep getting the following message: cfe: Warning 605: ./ImPlatform.h: 20: #error Sorry, this library assumes ANSI header files. We have the latest compiler and have applied all the relavent patches. Shouldn't I have an ANSI C compiler? --Zack /--------------------------------------------------------------------- Zachary F. Roadhouse Home: (401)453-9943 Box 220, Brown University, Providence, RI 02912 Work: (401)863-2177 E-MAIL: Zachary_Roadhouse@brown.edu WWW: http://www.techhouse.brown.edu/~zack _______________ IMAGE-SIG - SIG on Image Processing with Python send messages to: image-sig@python.org administrivia to: image-sig-request@python.org _______________ From fredrik@pythonware.com Sun Jan 11 23:07:39 1998 From: fredrik@pythonware.com (Fredrik Lundh) Date: Mon, 12 Jan 1998 00:07:39 +0100 Subject: [IMAGE-SIG] Compiling 0.3a1 on SGI Message-ID: <01bd1ee5$b6a2ab60$c901a8c0@panik.pythonware.com> >cfe: Warning 605: ./ImPlatform.h: 20: >#error Sorry, this library assumes ANSI header files. > >We have the latest compiler and have applied all the relavent patches. >Shouldn't I have an ANSI C compiler? Maybe it's not 100% ANSI compliant, unless you tell it so? The error you get indicates that the header files are not fully correct, and one possible reason for this is that the ctype.h macros are not ANSI compliant -- something that is true for at least some older Irix systems. Try reconfiguring with CC="cc -ansi" ./configure and rebuild. Cheers /F _______________ IMAGE-SIG - SIG on Image Processing with Python send messages to: image-sig@python.org administrivia to: image-sig-request@python.org _______________ From Zachary_Roadhouse@brown.edu Thu Jan 15 18:39:52 1998 From: Zachary_Roadhouse@brown.edu (Zachary_Roadhouse@brown.edu) Date: Thu, 15 Jan 1998 13:39:52 -0500 (EST) Subject: [IMAGE-SIG] Bug in PIL 0.3a1 tkImaging.c Message-ID: Really simple one, I guess Tk_FindPhoto now takes the interp as another arguement. This is for Tcl/Tk 8.0p2. I'm still trying to figure out the ANSI compiler thing. The simple -ansi switch doesn't fix it. Maybe you can figure out another way to detect whether or not a compiler is ANSI compilent. Everything appears to compile fine even with the warning about ANSI C. ----------- diff -c /vision/packages/Python/Python-1.5/Modules/tkImaging.c~ /vision/packages/Python/Python-1.5/Modules/tkImaging.c *** /vision/packages/Python/Python-1.5/Modules/tkImaging.c~ Thu Jan 15 13:39:24 1998 --- /vision/packages/Python/Python-1.5/Modules/tkImaging.c Thu Jan 15 13:39:24 1998 *************** *** 70,76 **** } /* get Tcl PhotoImage handle */ ! photo = Tk_FindPhoto(argv[1]); if (photo == NULL) { Tcl_AppendResult(interp, "destination photo must exist", (char *) NULL); return TCL_ERROR; --- 70,76 ---- } /* get Tcl PhotoImage handle */ ! photo = Tk_FindPhoto(interp, argv[1]); if (photo == NULL) { Tcl_AppendResult(interp, "destination photo must exist", (char *) NULL); return TCL_ERROR; --Zack /--------------------------------------------------------------------- Zachary F. Roadhouse Home: (401)453-9943 Box 220, Brown University, Providence, RI 02912 Work: (401)863-2177 E-MAIL: Zachary_Roadhouse@brown.edu WWW: http://www.techhouse.brown.edu/~zack _______________ IMAGE-SIG - SIG on Image Processing with Python send messages to: image-sig@python.org administrivia to: image-sig-request@python.org _______________ From SRowland@BIOCRYST.com Mon Jan 19 23:07:57 1998 From: SRowland@BIOCRYST.com (Rowland, Scott) Date: Mon, 19 Jan 1998 17:07:57 -0600 Subject: [IMAGE-SIG] Converting GIF to PostScript for printing Message-ID: Hi Image Processing SIG, I am attempting to write a Python Script which retrieves reports from an HTTP server and prints them out. The reports are accessible on a page by page basis in the form of scanned images in GIF format. I have been using PIL/Python 1.5 on a PC and was doing fine until I tried to use the PSDraw class to convert the GIF to PostScript for printing. It appears that GIF images are not supported in the PSDraw class. Is there a way around this problem? Is some utility/program for the PC I could use? Thanks in advance, Scott Rowland R. Scott Rowland, Ph.D. BioCryst Pharmaceuticals,Inc. 2190 Parkway Lake Dr., Birmingham, AL 35244 Phone:(205) 444-4600 FAX:(205) 444-4640 Email: srowland@biocryst.com WWW: http://www.biocryst.com _______________ IMAGE-SIG - SIG on Image Processing with Python send messages to: image-sig@python.org administrivia to: image-sig-request@python.org _______________ From fredrik@pythonware.com Tue Jan 20 00:00:55 1998 From: fredrik@pythonware.com (Fredrik Lundh) Date: Tue, 20 Jan 1998 01:00:55 +0100 Subject: [IMAGE-SIG] Converting GIF to PostScript for printing Message-ID: <01bd2536$7ad6c880$f29b12c2@panik.pythonware.com> >I am attempting to write a Python Script which retrieves reports from an >HTTP server and prints them out. The reports are accessible on a page by >page basis in the form of scanned images in GIF format. I have been >using PIL/Python 1.5 on a PC and was doing fine until I tried to use the >PSDraw class to convert the GIF to PostScript for printing. It appears >that GIF images are not supported in the PSDraw class. > >Is there a way around this problem? Try converting the image to either RGB (if you have a colour printer) or L. For example: im = Image.open("my.gif") im = im.convert("L") # greyscale ...draw using PSDraw... (PSDraw should probably do that automatically. I'll add it to the list of things to fix in future versions) Cheers /F fredrik@pythonware.com http://www.pythonware.com _______________ IMAGE-SIG - SIG on Image Processing with Python send messages to: image-sig@python.org administrivia to: image-sig-request@python.org _______________ From Dirk.Engelmann@iwr.uni-heidelberg.de Wed Jan 21 12:55:50 1998 From: Dirk.Engelmann@iwr.uni-heidelberg.de (Dirk Engelmann) Date: Wed, 21 Jan 1998 12:55:50 +0000 ( ) Subject: [IMAGE-SIG] pointer to image data ? Message-ID: Hi! Is there a way to set a pointer to image data from another shared library to an image structure (imagep->image) of Imaging library ? It could be done using semaphore (shared memory) - but is there another way, except the froomstring copy method ? Thanks for help! Cheers, Dirk _______________ IMAGE-SIG - SIG on Image Processing with Python send messages to: image-sig@python.org administrivia to: image-sig-request@python.org _______________ From bAiX2OQH4@si1ngledigit.net Thu Jan 22 08:37:51 1998 From: bAiX2OQH4@si1ngledigit.net (bAiX2OQH4@si1ngledigit.net) Date: 22 Jan 98 8:37:51 PM Subject: [IMAGE-SIG] Are You Happy? Message-ID: <5yt6z4a1b9Zs> There is brilliant information available to you, that will enable you to fully understand yourself and everybody else. This knowledge can benefit you tremendously in many ways. It can help you to get the very best out of your career, or discover your most suitable new career, and of course being happy at work, really improves the finances. It can also really enhance your love life. If you're in a relationship, it works great, because you are able to fully understand your own and your partner's emotions and motivations. If you're not, you will know exactly what you want from your perfect mate and what they will find attractive about you. Another big advantage to becoming balanced and happy is that good health runs hand in hand. Take a closer look two free pages of information at: http://www.po9.com _______________ IMAGE-SIG - SIG on Image Processing with Python send messages to: image-sig@python.org administrivia to: image-sig-request@python.org _______________ From da@skivs.ski.org Mon Jan 26 23:27:20 1998 From: da@skivs.ski.org (David Ascher) Date: Mon, 26 Jan 1998 15:27:20 -0800 (PST) Subject: [IMAGE-SIG] ImagePalette Message-ID: I'm confused about the ImagePalette stuff. I want to create a P mode image from data. What I'm doing is something like: image = Image.new('P', (500,500)) imagedraw = ImageDraw.ImageDraw(image) image.palette = ImagePalette.wedge() imagedraw.point(...) image.save('foo.bmp') the save fails because of the palette not having a properly defined rawmode: Traceback (innermost last): File "C:\Program Files\Python\imaging\ImageDraw.py", line 23, in __init__ im.load() File "C:\Program Files\Python\imaging\Image.py", line 300, in load if self.im and self.palette and self.palette.rawmode: AttributeError: rawmode I'll use 'L' images for now, but I'd like to understand 'P' mode images better... --david PS: Any hope that PIL 0.N+1 will support arrays in addition to lists, for e.g. the ImageDraw.point operations? _______________ IMAGE-SIG - SIG on Image Processing with Python send messages to: image-sig@python.org administrivia to: image-sig-request@python.org _______________ From jlar@lle.rochester.edu Thu Jan 29 18:48:19 1998 From: jlar@lle.rochester.edu (John M. Larkin) Date: Thu, 29 Jan 1998 13:48:19 -0500 Subject: [IMAGE-SIG] Download problem with ILG JPEG library Message-ID: <34D0CEF3.2DF8@lle.rochester.edu> When I try to download the IJG JPEG library from the PIL page at www.python.org I get the following error message from Netscape: Error opening /Imaging-jpeg6.tar.gz: Permission denied If the powers that be would fix the permissions on this file it would be greatly appreciated. -John Larkin _______________ IMAGE-SIG - SIG on Image Processing with Python send messages to: image-sig@python.org administrivia to: image-sig-request@python.org _______________ From fredrik@pythonware.com Sat Jan 31 10:35:14 1998 From: fredrik@pythonware.com (Fredrik Lundh) Date: Sat, 31 Jan 1998 11:35:14 +0100 Subject: [IMAGE-SIG] Fw: problem with PIL and 1.5 Message-ID: <01bd2e33$ea339220$f29b12c2@panik.pythonware.com> (catched by the mailing list software. "help" is not a good enough subject, obviously). a quick reply: as you noticed, Guido has added the necessary stuff to tkappinit.c. the only thing you should have to do is to define WITH_PIL, either in the Setup file or in tkappinit.c. also watch out for compilation errors. there was some API changes in 8.0 final that affects PIL (don't recall which ones at the moment, but your compiler should tell you...). Cheers /F >Date: Fri, 30 Jan 1998 16:01:50 -0500 (EST) >From: Lupe Howell FSU (850)644-3776 >To: image-sig@python.org >Subject: Help > >Hi, > We have installed python v1.5 in a DEC OSF/1 V3.2 (Rev. 214) >with tcl/tk v8.0 and we are trying to include the Imaging Library 0.3a1 >by following the README file V1.11 > >When we try a test of the Image.PhotoImage we get a core dump: > > python ../Scripts/viewer.py lena.gif >Segmentation fault (core dumped) > >The README file says to add the Tkinter support lines > { > extern void TkImaging_Init(Tcl_Interp * ); > TkImaging_Init(interp); > } > >after the MOREBUTTONS stuff. Where specifically? Inside the lines defined >by the following #ifdef WITH_MOREBUTTONS > >#ifdef WITH_MOREBUTTONS > { > extern Tcl_CmdProc studButtonCmd; > extern Tcl_CmdProc triButtonCmd; > > Tcl_CreateCommand(interp, "studbutton", studButtonCmd, > (ClientData) main, NULL); > Tcl_CreateCommand(interp, "tributton", triButtonCmd, > (ClientData) main, NULL); > } > >#endif > >or is the following #ifdef WITH_PIL sufficient? > >#ifdef WITH_PIL /* 0.2b5 and later -- not yet released as of May 14 */ > { > extern void TkImaging_Init(Tcl_Interp * ); > TkImaging_Init(interp); > /* XXX TkImaging_Init() doesn't have the right return type */ > /*Tcl_StaticPackage(interp, "Imaging", TkImaging_Init, NULL);*/ > } >#endif > > >We tried both places (inside the MOREBUTTONS or WITH_PIL). But either way >we get a core dump. > > > Any help, suggestions are welcome and appreciated. Thanks > > >Lupe Howell >Florida State University >lupe@hep.fsu.edu >(904) 644-3776 _______________ IMAGE-SIG - SIG on Image Processing with Python send messages to: image-sig@python.org administrivia to: image-sig-request@python.org _______________