From mathieu.drapeau at mcgill.ca Thu Dec 1 22:05:03 2005 From: mathieu.drapeau at mcgill.ca (Mathieu Drapeau) Date: Thu, 01 Dec 2005 16:05:03 -0500 Subject: [Image-SIG] jpeg decoder with PIL 1.1.5 Message-ID: <438F657F.40308@mcgill.ca> Hi there, I am trying to install PIL 1.1.5 with jpeg decoder. I installed from RPM and also from sources the libjpeg-6b into /usr/local/lib. I change the ROOT_JPEG in setup.py to point to that location. When I install PIL 1.1.5, I get a message that the JPEG support is OK. But when I test it, I get a message of decoder error. Someone could help me? I tried by myself in python and received the same IOError message. Thanks, Mathieu *** INSTALLATION *** running install running build running build_py running build_ext -------------------------------------------------------------------- PIL 1.1.5 BUILD SUMMARY -------------------------------------------------------------------- version 1.1.5 platform linux2 2.3.5 (#1, Nov 15 2005, 16:30:27) [GCC 4.0.0 20050519 (Red Hat 4.0.0-8)] -------------------------------------------------------------------- *** TKINTER support not available --- 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 running install_lib running install_scripts changing mode of /usr/local/bin/pilprint.py to 775 changing mode of /usr/local/bin/pilfont.py to 775 changing mode of /usr/local/bin/pildriver.py to 775 changing mode of /usr/local/bin/pilconvert.py to 775 changing mode of /usr/local/bin/pilfile.py to 775 creating /usr/local/lib/python2.3/site-packages/PIL.pth *** TEST *** ***************************************************************** Failure in example: _info(Image.open("Images/lena.jpg")) from line #24 of selftest.testimage Exception raised: Traceback (most recent call last): File "./doctest.py", line 499, in _run_examples_inner exec compile(source, "", "single") in globs File "", line 1, in ? File "./selftest.py", line 21, in _info im.load() File "PIL/ImageFile.py", line 180, in load d = Image._getdecoder(self.mode, d, a, self.decoderconfig) File "PIL/Image.py", line 328, in _getdecoder raise IOError("decoder %s not available" % decoder_name) IOError: decoder jpeg not available 1 items had failures: 1 of 55 in selftest.testimage ***Test Failed*** 1 failures. *** 1 tests of 55 failed. From srmoon at andrew.cmu.edu Fri Dec 2 20:47:53 2005 From: srmoon at andrew.cmu.edu (Shaun Richard Moon) Date: Fri, 2 Dec 2005 14:47:53 -0500 (EST) Subject: [Image-SIG] webcam snapshots for Mac Message-ID: <49722.128.237.247.136.1133552873.squirrel@128.237.247.136> Does anybody out there have anyway that a true novice running Mac OS 10.4.* and Python 2.4.1 might be able to capture a still image from a webcam? Any help would be very highly appreciated. Cheers! shaun From nand_rathi at yahoo.com Sat Dec 3 14:47:59 2005 From: nand_rathi at yahoo.com (Nand Rathi) Date: Sat, 3 Dec 2005 05:47:59 -0800 (PST) Subject: [Image-SIG] Please, I need help regarding displaying a PIL image in realtime... Message-ID: <20051203134759.15238.qmail@web34301.mail.mud.yahoo.com> Hello All I am new to PIL so I apolozize in advance if what I ask is irrelevant to PIL. I am working with Python 2.4, PIL 1.1.5 in RH Linux and winXP environment. My application is collecting realtime data from multiple sensors. The data samples arrive on an average every 6 to 8 seconds. I need to plot the sensor data in realtime for viewing. I can use PIL beautifully to create the Images etc of the data and also can manipulate the image with the fresh arival of sensor data. The problem is viewing or displaying the image in realtime. File based viewing is inappropraite as well as slow here. Image.show method is also inappropriate as it will spawn an external process every 6 seconds or so. Too slow. In my opinion, what I require is a bitmapped graphics capable of rendering a PIL image in realtime with a refresh method which can be used to display the fresh arrived sensor data. There is a mention of an img package by Jack Jensen for X display in PIL handbook, but I couldn't locate the package via Google. Please help me with the direction here. Is there any other Python package which will fit the solution? I am also open to consider an alternative solution, as long as it will allow me realtime plotting of the data. I appreciate any help or guidance in this regard. regards Nand __________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From guillaume.proux at scala.com Sat Dec 3 15:01:08 2005 From: guillaume.proux at scala.com (Guillaume Proux) Date: Sat, 03 Dec 2005 23:01:08 +0900 Subject: [Image-SIG] Please, I need help regarding displaying a PIL image in realtime... In-Reply-To: <20051203134759.15238.qmail@web34301.mail.mud.yahoo.com> References: <20051203134759.15238.qmail@web34301.mail.mud.yahoo.com> Message-ID: <4391A524.60808@scala.com> > File based viewing is inappropraite as well as slow > here. Image.show method is also inappropriate as it > will spawn an external process every 6 seconds or so. > Too slow. In my opinion, what I require is a bitmapped > graphics capable of rendering a PIL image in realtime > with a refresh method which can be used to display the > fresh arrived sensor data. You should have a look at pygame or pyopengl for those kind of needs. pygame is very simple to use but it is difficult to integrate in a different user interface (such as GTK). Regards, Guillaume From kevin at cazabon.com Sat Dec 3 19:09:00 2005 From: kevin at cazabon.com (kevin@cazabon.com) Date: Sat, 3 Dec 2005 19:09:00 +0100 Subject: [Image-SIG] Please, I need help regarding displaying a PIL image in realtime... References: <20051203134759.15238.qmail@web34301.mail.mud.yahoo.com> Message-ID: <060d01c5f834$a3579120$650aa8c0@duallie> Tkinter is your friend. ############## import Image, ImageTk, Tkinter def show2(imgFile): im = Image.open(imgFile) window = Tkinter.Tk() window.tkIm = ImageTk.PhotoImage(im) window.label = Tkinter.Label(window, image=window.tkIm) window.label.pack() return window x = show2("c:\\temp\test.tif") # to show a new image you could always: x.tkIm = ImageTk.PhotoImage(newImage) # an open PIL image x.label.configure(image = x.tkIm) x.update_idletasks() x.mainloop() ######################## I'd probably do it as a class, with an update function to change the image Kevin. ----- Original Message ----- From: "Nand Rathi" To: "python_ImageSig" Sent: Saturday, December 03, 2005 2:47 PM Subject: [Image-SIG] Please,I need help regarding displaying a PIL image in realtime... Hello All I am new to PIL so I apolozize in advance if what I ask is irrelevant to PIL. I am working with Python 2.4, PIL 1.1.5 in RH Linux and winXP environment. My application is collecting realtime data from multiple sensors. The data samples arrive on an average every 6 to 8 seconds. I need to plot the sensor data in realtime for viewing. I can use PIL beautifully to create the Images etc of the data and also can manipulate the image with the fresh arival of sensor data. The problem is viewing or displaying the image in realtime. File based viewing is inappropraite as well as slow here. Image.show method is also inappropriate as it will spawn an external process every 6 seconds or so. Too slow. In my opinion, what I require is a bitmapped graphics capable of rendering a PIL image in realtime with a refresh method which can be used to display the fresh arrived sensor data. There is a mention of an img package by Jack Jensen for X display in PIL handbook, but I couldn't locate the package via Google. Please help me with the direction here. Is there any other Python package which will fit the solution? I am also open to consider an alternative solution, as long as it will allow me realtime plotting of the data. I appreciate any help or guidance in this regard. regards Nand __________________________________________ Yahoo! DSL - Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com _______________________________________________ Image-SIG maillist - Image-SIG at python.org http://mail.python.org/mailman/listinfo/image-sig From kevin at cazabon.com Sun Dec 4 14:00:48 2005 From: kevin at cazabon.com (kevin@cazabon.com) Date: Sun, 4 Dec 2005 14:00:48 +0100 Subject: [Image-SIG] Please, I need help regarding displaying a PIL image in realtime... References: <20051203134759.15238.qmail@web34301.mail.mud.yahoo.com> Message-ID: <077401c5f8d2$bf83e580$650aa8c0@duallie> This question seems to come up regularly - so here's a quick and dirty class that should work for displaying in Tkinter (cross-platform, although I've only tested on Windows). Kevin. ----- Original Message ----- From: "Nand Rathi" To: "python_ImageSig" Sent: Saturday, December 03, 2005 2:47 PM Subject: [Image-SIG] Please,I need help regarding displaying a PIL image in realtime... Hello All I am new to PIL so I apolozize in advance if what I ask is irrelevant to PIL. I am working with Python 2.4, PIL 1.1.5 in RH Linux and winXP environment. My application is collecting realtime data from multiple sensors. The data samples arrive on an average every 6 to 8 seconds. I need to plot the sensor data in realtime for viewing. I can use PIL beautifully to create the Images etc of the data and also can manipulate the image with the fresh arival of sensor data. The problem is viewing or displaying the image in realtime. File based viewing is inappropraite as well as slow here. Image.show method is also inappropriate as it will spawn an external process every 6 seconds or so. Too slow. In my opinion, what I require is a bitmapped graphics capable of rendering a PIL image in realtime with a refresh method which can be used to display the fresh arrived sensor data. There is a mention of an img package by Jack Jensen for X display in PIL handbook, but I couldn't locate the package via Google. Please help me with the direction here. Is there any other Python package which will fit the solution? I am also open to consider an alternative solution, as long as it will allow me realtime plotting of the data. I appreciate any help or guidance in this regard. regards Nand __________________________________________ Yahoo! DSL - Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com _______________________________________________ Image-SIG maillist - Image-SIG at python.org http://mail.python.org/mailman/listinfo/image-sig -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: showTk.py Url: http://mail.python.org/pipermail/image-sig/attachments/20051204/9b55cdde/showTk.asc From kevin at cazabon.com Sun Dec 4 14:07:17 2005 From: kevin at cazabon.com (kevin@cazabon.com) Date: Sun, 4 Dec 2005 14:07:17 +0100 Subject: [Image-SIG] Please, I need help regarding displaying a PIL image in realtime... References: <20051203134759.15238.qmail@web34301.mail.mud.yahoo.com> <077401c5f8d2$bf83e580$650aa8c0@duallie> Message-ID: <07c101c5f8d3$a75e2500$650aa8c0@duallie> Sorry, stupid typo in sizeToMax in the one I sent previously. Sorry for the attachments. Kevin. ----- Original Message ----- From: To: "Nand Rathi" ; "python_ImageSig" Sent: Sunday, December 04, 2005 2:00 PM Subject: Re: [Image-SIG] Please,I need help regarding displaying a PIL image in realtime... > This question seems to come up regularly - so here's a quick and dirty class > that should work for displaying in Tkinter (cross-platform, although I've > only tested on Windows). > > Kevin. > > > > ----- Original Message ----- > From: "Nand Rathi" > To: "python_ImageSig" > Sent: Saturday, December 03, 2005 2:47 PM > Subject: [Image-SIG] Please,I need help regarding displaying a PIL image in > realtime... > > > Hello All > > > > I am new to PIL so I apolozize in advance if what I > ask is irrelevant to PIL. I am working with Python > 2.4, PIL 1.1.5 in RH Linux and winXP environment. > > > > My application is collecting realtime data from > multiple sensors. The data samples arrive on an > average every 6 to 8 seconds. I need to plot the > sensor data in realtime for viewing. > > > > I can use PIL beautifully to create the Images etc of > the data and also can manipulate the image with the > fresh arival of sensor data. The problem is viewing or > displaying the image in realtime. > > > > File based viewing is inappropraite as well as slow > here. Image.show method is also inappropriate as it > will spawn an external process every 6 seconds or so. > Too slow. In my opinion, what I require is a bitmapped > graphics capable of rendering a PIL image in realtime > with a refresh method which can be used to display the > fresh arrived sensor data. There is a mention of an > img package by Jack Jensen for X display in PIL > handbook, but I couldn't locate the package via > Google. > > > > Please help me with the direction here. Is there any > other Python package which will fit the solution? I am > also open to consider an alternative solution, as long > as it will allow me realtime plotting of the data. > > > > I appreciate any help or guidance in this regard. > > > > regards > > Nand > > > > __________________________________________ > Yahoo! DSL - Something to write home about. > Just $16.99/mo. or less. > dsl.yahoo.com > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > > > ---------------------------------------------------------------------------- ---- > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: showTk.py Url: http://mail.python.org/pipermail/image-sig/attachments/20051204/c31410e6/showTk.pot From Chris.Barker at noaa.gov Mon Dec 5 17:55:26 2005 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Mon, 05 Dec 2005 08:55:26 -0800 Subject: [Image-SIG] Please, I need help regarding displaying a PIL image in realtime... In-Reply-To: <060d01c5f834$a3579120$650aa8c0@duallie> References: <20051203134759.15238.qmail@web34301.mail.mud.yahoo.com> <060d01c5f834$a3579120$650aa8c0@duallie> Message-ID: <439470FE.6090306@noaa.gov> kevin at cazabon.com wrote: > Tkinter is your friend. wxPython also: http://wiki.wxpython.org/index.cgi/WorkingWithImages I'll bet you can do it with PyQT, PyGTK and PyObjC also. However, if you douse those toolkits, you might want to just do your drawing with them and not use PIL at all. Check out matplotlib, wxPyPlot, Chaco, etc. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From mclange at ucdavis.edu Tue Dec 6 00:20:27 2005 From: mclange at ucdavis.edu (Matthew Lange) Date: Mon, 5 Dec 2005 15:20:27 -0800 Subject: [Image-SIG] PIL In-Reply-To: <4394C3F7.2080401@ucdavis.edu> Message-ID: <004401c5f9f2$7d0a3530$6400a8c0@SpeedFreak> Found the problem: When I blew away the PIL src and added a freshy, and rebuilt with python 2.3--everything went in fine. Image thumbs look great. Thank guys. matthew > -----Original Message----- > From: Eric Frahm [mailto:eafrahm at ucdavis.edu] > Sent: Monday, December 05, 2005 2:49 PM > To: Matthew Lange > Subject: Re: PIL > > > Imaging-1.1.5 ? > > Matthew Lange wrote: > > Imaging stuff from which directory? > > > > > > > > > >>-----Original Message----- > >>From: Eric Frahm [mailto:eafrahm at ucdavis.edu] > >>Sent: Monday, December 05, 2005 2:37 PM > >>To: Matthew Lange > >>Subject: Re: PIL > >> > >>I googled it and it doesn't look good. Make sure when you build the > >>imaging stuff, the all of the old files get replaced, or remove them > >>manually beforehand. > >> From gary at instate.co.uk Tue Dec 6 11:14:22 2005 From: gary at instate.co.uk (Gary Lehan) Date: Tue, 6 Dec 2005 10:14:22 -0000 Subject: [Image-SIG] Tif Images Message-ID: <20051206101418.EC6E8E0000EB@astro.systems.pipex.net> Hello, I am currently trying to create PDF files using TIF or JPG files for my input. I have written a routine that creates the PDF file correctly using PIL to retrieve my images. If I run the py2exe to create my exe file and run the program I get an error as follows ========================================== ERROR: test (__main__.CITLPDF) ------------------------------------------ Traceback (most recent call last): File "pdfgen.py", line 51, in test File "Image.pyc", line 1745, in open IOError: cannot identify image file ------------------------------------------ Ran 1 test in 0.000s FAILED (errors=1) I have added my pdfgen.py file for you to look at I have a folder in my Python24 folder named Instate To run my file from IDLE C:\Python24\Instate\pdfgen.py Create folders C:\Python24\Input C:\Python24\Output Create a text file in the input folder with "1" entered as the text Name this file Pages.dat Copy a JPG file to the input folder and name it Page1.jpg The Pages.dat file is simply their to get the number of pages The script reads this file then opens each page in turn and adds The jpg to the PDF canvas Please can you tell me why this works in the IDLE but not in runtime Thank You Gary Lehan Software Development Manager (Microsoft Sales Expert) Instate Technology Ltd Tel : 0113 244 5150 www : http://www.instate.co.uk iTL -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20051206/6fd992a4/attachment.html -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: pdfgen.py Url: http://mail.python.org/pipermail/image-sig/attachments/20051206/6fd992a4/pdfgen.pot From fredrik at pythonware.com Tue Dec 6 12:02:47 2005 From: fredrik at pythonware.com (Fredrik Lundh) Date: Tue, 6 Dec 2005 12:02:47 +0100 Subject: [Image-SIG] Tif Images References: <20051206101418.EC6E8E0000EB@astro.systems.pipex.net> Message-ID: Gary Lehan wrote: > I am currently trying to create PDF files using TIF or JPG files for my > input. I have written a routine that creates the PDF file correctly using > PIL to retrieve my images. If I run the py2exe to create my exe file > and run the program I get an error as follows > > ========================================== > > ERROR: test (__main__.CITLPDF) > > ------------------------------------------ > Traceback (most recent call last): > File "pdfgen.py", line 51, in test > File "Image.pyc", line 1745, in open > IOError: cannot identify image file > > ------------------------------------------ the py2exe wiki discusses common py2exe issues: http://starship.python.net/crew/theller/moin.cgi/Py2Exe see section 1.3.4 for a solution to this specific issue. From 550283447739-0001 at t-online.de Tue Dec 6 19:36:18 2005 From: 550283447739-0001 at t-online.de (Oliver Albrecht) Date: Tue, 06 Dec 2005 19:36:18 +0100 Subject: [Image-SIG] help regarding FLC-palette Message-ID: <4395DA22.5020704@t-online.de> Hello Everyone Unfortunately (PIL-1.1.5)/I can't read the FLC-palette(Animation in Civilization3), but some other Programs can do it? (Gimp, Xnview, AnimationShop3) Can someone give some tips/help? I need this for a feature in a wxPython converting-tool. I appreciate any help or guidance in this regard. Thanks. regards -- From michele.petrazzo at unipex.it Wed Dec 7 10:09:35 2005 From: michele.petrazzo at unipex.it (Michele Petrazzo) Date: Wed, 07 Dec 2005 10:09:35 +0100 Subject: [Image-SIG] help regarding FLC-palette In-Reply-To: <4395DA22.5020704@t-online.de> References: <4395DA22.5020704@t-online.de> Message-ID: <4396A6CF.8050901@unipex.it> Oliver Albrecht wrote: > Hello Everyone > > Unfortunately (PIL-1.1.5)/I can't read the FLC-palette(Animation in > Civilization3), but some other Programs can do it? (Gimp, Xnview, > AnimationShop3) Can someone give some tips/help? > I don't know what is FLC palette, but I know that freeimage can load a lot of image formats. If you want to try it, download freeimagepy and let me know if it work or if I can help you modifying freeimagepy. Or send me an example image that I make some tries. > I need this for a feature in a wxPython converting-tool. What if want to do exactly? > I appreciate any help or guidance in this regard. Thanks. > > regards Bye, Michele From fredrik at pythonware.com Wed Dec 7 10:32:09 2005 From: fredrik at pythonware.com (Fredrik Lundh) Date: Wed, 7 Dec 2005 10:32:09 +0100 Subject: [Image-SIG] help regarding FLC-palette References: <4395DA22.5020704@t-online.de> Message-ID: Oliver Albrecht wrote: > Unfortunately (PIL-1.1.5)/I can't read the FLC-palette(Animation in > Civilization3), but some other Programs can do it? (Gimp, Xnview, > AnimationShop3) > > Can someone give some tips/help? can you mail me (or point me to) a sample file ? From fredrik at pythonware.com Sun Dec 11 10:17:31 2005 From: fredrik at pythonware.com (Fredrik Lundh) Date: Sun, 11 Dec 2005 10:17:31 +0100 Subject: [Image-SIG] ANN: PIL 1.1.6 alpha 1 (december 11, 2005) Message-ID: The first PIL 1.1.6 is now available from effbot.org: http://effbot.org/downloads (look for Imaging-1.1.6a1.tar.gz) Notable additions: + Added pixel access object. The "load" method now returns an access object that can be used to directly get and set pixel values, using ordinary 2D array notation: pixel = im.load() v = pixel[x, y] pixel[x, y] = v If you're accessing more than a few pixels, this is a lot faster than using getpixel/putpixel. + Added buffer interface support to the Path constructor. If a buffer is provided, it is assumed to contain a flat array of float coordinates (e.g. array.array('f', seq)). + Added new ImageMath module: http://effbot.org/imagingbook/imagemath.htm and a bunch of bug fixes and minor tweaks. For a more complete list, see: http://effbot.org/zone/pil-changes-116.htm Report bugs to this list or directly to me, as usual. enjoy /F From fredrik at pythonware.com Sun Dec 11 11:48:05 2005 From: fredrik at pythonware.com (Fredrik Lundh) Date: Sun, 11 Dec 2005 11:48:05 +0100 Subject: [Image-SIG] PIL 1.1.6 alpha 1 (december 11, 2005) References: Message-ID: > The first PIL 1.1.6 is now available from effbot.org: make that: The first official PIL 1.1.6 alpha is now available from effbot.org: From timb at tbitc.com Sun Dec 11 23:43:23 2005 From: timb at tbitc.com (Tim Burgess) Date: Mon, 12 Dec 2005 09:13:23 +1030 Subject: [Image-SIG] Import PrintPicture + py2exe gives VC Runtime error Message-ID: <439CAB8B.4000602@tbitc.com> Hi I have a mature wxpython application - only the printing of a picture remains. Under the development environment the application is complete and does print pictures. However the frozen version (with py2exe 063) runs until the Import PrintPicture line is executed and then immediately issues a VC++ Runtime error - This application has requested the Runtime to terminate in an unusual manner... etc This is free PIL 1.1.5 Any one have a suggestion or fix for this? Thanks -- Tim Burgess IT Consultant RedHat Certified Engineer TBITC Pty Ltd Professional Computer Support for Business timb at tbitc.com Mobile 0422 942 972 Office 85 662 016 http://www.tbitc.com From haase at msg.ucsf.edu Tue Dec 13 02:27:19 2005 From: haase at msg.ucsf.edu (Sebastian Haase) Date: Mon, 12 Dec 2005 17:27:19 -0800 Subject: [Image-SIG] save a tif image "sequence" Message-ID: <200512121727.19920.haase@msg.ucsf.edu> Hi, Does PIL support saving many 2D images into one tif file. (I think PIL calls this a image "sequence") It was looking into the seek() and tell() functions, but all I could find was about _reading_ sequences. Thanks, Sebastian Haase From ledins at latnet.lv Tue Dec 13 15:45:57 2005 From: ledins at latnet.lv (Peteris Ledins) Date: Tue, 13 Dec 2005 16:45:57 +0200 Subject: [Image-SIG] Problems with PIL installation Message-ID: <000001c5fff3$ee1b27a0$0501a8c0@zigis> Hi! Tried to install the latest 1.1.5 Pil version for python 2.4 - failed - with some ntdll.dll error. Afterwards I just moved Python24 to c:\ and installation worked. Maybe my registry is wrong, however as far as I remember I did install Python to d:\ drive. Ledins From hilbricht at linopus.de Wed Dec 14 20:35:56 2005 From: hilbricht at linopus.de (Tobias Hilbricht) Date: Wed, 14 Dec 2005 20:35:56 +0100 Subject: [Image-SIG] How to pass an image from python as C/C++ pointer Message-ID: <200512142035.56469.hilbricht@linopus.de> Dear readers of this list, I am writing a softproof plugin for the open source vector drawing python application Skencil by Bernhard Herzog, which runs on GNU/Linux and other Unixes. This softproof plugin uses the little color management suite (lcms or littlecms) by Marti Maria to do profile based softproofing and will show the softproof as an bitmap representation of the vector drawing. lcms is written in C but provides python handles, and I could perform all python tests of lcms. However, I run into a problem passing image files to lcms using python. If I do a test with the following file softtest.py I get the error message: File "/home/tobias/Skencil-CMYK/testbed/softtest.py", line 15, in -toplevel- cmsDoTransform(hTransform, im, imagesave, 500990) TypeError: argument number 2: a 'C/C++ pointer' is expected, 'instance()' is received -------------------------------------------------------------------------- # softtest.py -- test softproofing with lcms from lcms import * import Image, ImageTk im = Image.open('farbtest.ppm') imagesave = im.save('farbtest-proof.ppm', 'ppm') hInput = cmsOpenProfileFromFile("AdobeRGB1998.icc", "r") hOutput = cmsOpenProfileFromFile("l568d65.icm", "r") hProof = cmsOpenProfileFromFile("EuroscaleCoated.icc", "r") hTransform = cmsCreateProofingTransform(hInput, TYPE_BGR_8, hOutput, TYPE_BGR_8, hProof, INTENT_PERCEPTUAL, INTENT_PERCEPTUAL, 0) cmsDoTransform(hTransform, im, imagesave, 500990) cmsDeleteTransform(hTransform) cmsCloseProfile(hInput) cmsCloseProfile(hOutput) cmsCloseProfile(hProof) ------------------------------------------------------------------------ How do I pass an image file as C/C++ pointer from python to lcms? Thanks for any helpful hints in advance Yours sincerely Tobias Hilbricht -- Dr. Tobias Hilbricht Linopus Satz und Grafik www.linopus.de From kevin at cazabon.com Wed Dec 14 21:25:19 2005 From: kevin at cazabon.com (kevin@cazabon.com) Date: Wed, 14 Dec 2005 21:25:19 +0100 Subject: [Image-SIG] How to pass an image from python as C/C++ pointer References: <200512142035.56469.hilbricht@linopus.de> Message-ID: <0a5e01c600ec$813d06e0$650aa8c0@duallie> Hi Tobias - I did a bit of work with Marti a while back, and I ended up releasing PyCMS - I wrapper module around the Little CMS ICC library that also handles all the file passing complexities and such. Marti ended providing his own handles as well, but they're not nearly as easy to use. You can use PyCMS directly in your program if you like, or simply refer to my code to see how I'm using LittleCMS. You can find PyCMS at: http://www.cazabon.com/pyCMS Kevin Cazabon ----- Original Message ----- From: "Tobias Hilbricht" To: Sent: Wednesday, December 14, 2005 8:35 PM Subject: [Image-SIG] How to pass an image from python as C/C++ pointer > Dear readers of this list, > > I am writing a softproof plugin for the open source vector drawing python > application Skencil by Bernhard Herzog, which runs on GNU/Linux and other > Unixes. > > This softproof plugin uses the little color management suite (lcms or > littlecms) by Marti Maria to do profile based softproofing and will show the > softproof as an bitmap representation of the vector drawing. > > lcms is written in C but provides python handles, and I could perform all > python tests of lcms. > > However, I run into a problem passing image files to lcms using python. If I > do a test with the following file softtest.py I get the error message: > > File "/home/tobias/Skencil-CMYK/testbed/softtest.py", line 15, in -toplevel- > cmsDoTransform(hTransform, im, imagesave, 500990) > TypeError: argument number 2: a 'C/C++ pointer' is expected, > 'instance()' is received > > -------------------------------------------------------------------------- > # softtest.py -- test softproofing with lcms > > from lcms import * > import Image, ImageTk > > im = Image.open('farbtest.ppm') > imagesave = im.save('farbtest-proof.ppm', 'ppm') > > hInput = cmsOpenProfileFromFile("AdobeRGB1998.icc", "r") > hOutput = cmsOpenProfileFromFile("l568d65.icm", "r") > hProof = cmsOpenProfileFromFile("EuroscaleCoated.icc", "r") > > hTransform = cmsCreateProofingTransform(hInput, TYPE_BGR_8, hOutput, > TYPE_BGR_8, hProof, INTENT_PERCEPTUAL, INTENT_PERCEPTUAL, 0) > > cmsDoTransform(hTransform, im, imagesave, 500990) > > cmsDeleteTransform(hTransform) > cmsCloseProfile(hInput) > cmsCloseProfile(hOutput) > cmsCloseProfile(hProof) > ------------------------------------------------------------------------ > > How do I pass an image file as C/C++ pointer from python to lcms? > > Thanks for any helpful hints in advance > > Yours sincerely > > Tobias Hilbricht > > -- > Dr. Tobias Hilbricht > Linopus Satz und Grafik > www.linopus.de > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > > > From hilbricht at linopus.de Thu Dec 15 09:05:10 2005 From: hilbricht at linopus.de (Tobias Hilbricht) Date: Thu, 15 Dec 2005 09:05:10 +0100 Subject: [Image-SIG] Fwd: Re: How to pass an image from python as C/C++ pointer Message-ID: <200512150905.10416.hilbricht@linopus.de> ---------- Weitergeleitete Nachricht ---------- Subject: Re: [Image-SIG] How to pass an image from python as C/C++ pointer Date: Mittwoch, 14. Dezember 2005 22:13 From: Tobias Hilbricht To: kevin at cazabon.com Am Mittwoch, 14. Dezember 2005 21:25 schrieb kevin at cazabon.com: > Hi Tobias - > > You can use PyCMS directly in your program if you like, or simply refer to > my code to see how I'm using LittleCMS. You can find PyCMS at: > > http://www.cazabon.com/pyCMS Dear Kevin, thank you for your quick reply to my question. I noticed pyCMS and had a look at it. But as I understood it pyCMS.py relies on pyCMSdll, and I could not compile pyCMSdll.c on my Linux system (and cannot use the precompiled Windows dll). If I adapt pyCMSdll.c for my system: ----------------------------------------------------------------------------- ///////////////////////////////////////////////////////////////////////////// // includes ///////////////////////////////////////////////////////////////////////////// #include "/usr/include/python2.3/Python.h" //#include "patchlevel.h" // so we can include the Python version automatically in pyCMSdll.versions() #include "/usr/include/lcms.h" #include "/usr/include/python2.3/Imaging.h" ///////////////////////////////////////////////////////////////////////////// // version information: update this before compiling for the versions you're using ///////////////////////////////////////////////////////////////////////////// #define PYCMSVERSION "0.0.2 alpha" #define LITTLECMSVERSION "1.13" #define PILVERSION "1.1.4" //#ifndef PY_MAJOR_VERSION // before 1.5.2b2, these were not supported // #define PY_MAJOR_VERSION 0 // #define PY_MINOR_VERSION 0 // #define PY_MICRO_VERSION 0 //#endif #define PYTHONVERSION "2.3.5" ------------------------------------------------------------------------------ and then apply gcc on pyCMSdll.c, then I get the following error messages: tobias at phoebus:~/pyCMS/pyCMS.0.0.2alpha$ gcc -o pyCMSdll pyCMSdll.c pyCMSdll.c: In Funktion ?getOpenProfile?: pyCMSdll.c:257: Warnung: Verarbeiten des Argumentes 2 von ?PyCObject_FromVoidPtr? von inkompatiblem Zeigertyp pyCMSdll.c: In Funktion ?createProfile?: pyCMSdll.c:510: Warnung: Verarbeiten des Argumentes 2 von ?PyCObject_FromVoidPtr? von inkompatiblem Zeigertyp /usr/lib/gcc-lib/i486-linux/3.3.5/../../../crt1.o(.text+0x18): In function `_start': ../sysdeps/i386/elf/start.S:98: undefined reference to `main' /tmp/ccrvq1Qz.o(.text+0x1a3): In function `pyCMSdoTransform': : undefined reference to `PyEval_SaveThread' /tmp/ccrvq1Qz.o(.text+0x1fd): In function `pyCMSdoTransform': : undefined reference to `cmsDoTransform' [.....] So this stopped me so far from using pyCMS and kept me trying the lcms-provided python handles. Yours sincerely Tobias Hilbricht PS: Sorry for sending the first reply as PM, I just pressed the reply button -- Dr. Tobias Hilbricht Linopus Satz und Grafik www.linopus.de ------------------------------------------------------- -- Dr. Tobias Hilbricht Linopus Satz und Grafik www.linopus.de From s_david_rose at hotmail.com Fri Dec 16 22:43:59 2005 From: s_david_rose at hotmail.com (S. D. Rose) Date: Fri, 16 Dec 2005 16:43:59 -0500 Subject: [Image-SIG] Place image into MySQL db. Message-ID: (Sorry - I accidentally posted to General Python...) I have a question about PIL. I get a 50k photo from a MySQL table, convert it to grey-scale, do some rotations, etc. Then I want to put it back. It seems that after I do the greyscale, it converts from 'JPEG' to 'RAW'. Can anyone tell me how I convert the image back to 'JPEG' and then insert the photo into the MySQL database? I've tried .tostring('jpeg') but that told me it couldn't load the jpeg encoder. My steps are here: >>> import MySQLdb >>> import array, cStringIO >>> import Image, ImageOps >>> con = MySQLdb(db='', host='', user='', passwd='') >>> cur = con.cursor() >>> cur.execute('SELECT photo FROM photos') >>> result = cur.fetchone() >>> photo = result[0].tostring() >>> colorImg = Image.open(cStringIO.StringIO( photo)) >>> colorImg.show() # Shows a color image on the Win32 screen >>> img.format 'JPEG' >>> bwImg =imageOps.grayscale(img) >>> bwImg.format >>> todb = bwImg.tostring(encoder_name='JPEG') TRACEBACK ... IOError: encoder JPEG not available. >>> Any help telling me how to take the bwImg image (not the PIL object) and placing it back into a MySQL database would be highly appreciated! Thanks! Dave From michele.petrazzo at unipex.it Sat Dec 17 09:51:07 2005 From: michele.petrazzo at unipex.it (Michele Petrazzo) Date: Sat, 17 Dec 2005 09:51:07 +0100 Subject: [Image-SIG] save a tif image "sequence" In-Reply-To: <200512121727.19920.haase@msg.ucsf.edu> References: <200512121727.19920.haase@msg.ucsf.edu> Message-ID: <43A3D17B.4020408@unipex.it> Sebastian Haase wrote: > Hi, Does PIL support saving many 2D images into one tif file. (I > think PIL calls this a image "sequence") It was looking into the > seek() and tell() functions, but all I could find was about _reading_ > sequences. I don't know if PIL can do this, so this can be an annoying post, but you can use freeimagepy that doesn't have the seek and tell functions, (for now, because I'm working for make it more "pythonic" so I'll add functions like those ), but it has convertToMultiPage that do what you want. If you want, I can add that functions and send you the new versions so you can try it for see if it work in your environment. > > Thanks, Sebastian Haase Hope can help, Michele From michele.petrazzo at unipex.it Sat Dec 17 09:56:41 2005 From: michele.petrazzo at unipex.it (Michele Petrazzo) Date: Sat, 17 Dec 2005 09:56:41 +0100 Subject: [Image-SIG] Import PrintPicture + py2exe gives VC Runtime error In-Reply-To: <439CAB8B.4000602@tbitc.com> References: <439CAB8B.4000602@tbitc.com> Message-ID: <43A3D2C9.3050907@unipex.it> Tim Burgess wrote: > Hi I have a mature wxpython application - only the printing of a > picture remains. > > Under the development environment the application is complete and > does print pictures. > > However the frozen version (with py2exe 063) runs until the Import > PrintPicture line is executed and then immediately issues a VC++ > Runtime error - This application has requested the Runtime to > terminate in an unusual manner... etc > > This is free PIL 1.1.5 > > Any one have a suggestion or fix for this? > I know that with the last (060+) py2exe versions, there was some issues with the call of external programs/libraries, due some internal modifies. I think that this isn't a PIL or PrintPicture (what is this? A program, a library?), but a py2exe problem... I think that the better method for try to find a solution is to ask at py2exe mailing-list. > Thanks > Michele From haase at msg.ucsf.edu Sat Dec 17 23:20:16 2005 From: haase at msg.ucsf.edu (Sebastian Haase) Date: Sat, 17 Dec 2005 14:20:16 -0800 Subject: [Image-SIG] save a tif image "sequence" In-Reply-To: <43A3D17B.4020408@unipex.it> References: <200512121727.19920.haase@msg.ucsf.edu> <43A3D17B.4020408@unipex.it> Message-ID: Michele, Thanks for your reply. Are you saying you are developping a "competing project" to PIL !? (I didn't understand what you meant by "annoying post" ;-) Whatever it is, if it's freely available I would like to take a look... PIL *should* support multipage-tifs ! Thanks, Sebastian On Sat, 17 Dec 2005 09:51:07 +0100 Michele Petrazzo wrote: > Sebastian Haase wrote: >> Hi, Does PIL support saving many 2D images into one tif file. (I >> think PIL calls this a image "sequence") It was looking into the >> seek() and tell() functions, but all I could find was about _reading_ >> sequences. > > I don't know if PIL can do this, so this can be an annoying post, but > you can use freeimagepy that doesn't have the seek and tell functions, > (for now, because I'm working for make it more "pythonic" so I'll add > functions like those ), but it has convertToMultiPage that do what you >want. > If you want, I can add that functions and send you the new versions so > you can try it for see if it work in your environment. > >> >> Thanks, Sebastian Haase > > Hope can help, > Michele From fredrik at pythonware.com Sun Dec 18 09:14:38 2005 From: fredrik at pythonware.com (Fredrik Lundh) Date: Sun, 18 Dec 2005 09:14:38 +0100 Subject: [Image-SIG] Place image into MySQL db. References: Message-ID: "S. D. Rose" wrote: > I have a question about PIL. > > I get a 50k photo from a MySQL table, convert it to grey-scale, do some > rotations, etc. Then I want to put it back. It seems that after I do the > greyscale, it converts from 'JPEG' to 'RAW'. Can anyone tell me how I > convert the image back to 'JPEG' and then insert the photo into the MySQL > database? I've tried .tostring('jpeg') but that told me it couldn't load the > jpeg encoder. "tostring" converts the pixel contents to a string buffer, much like array.tostring and similar methods in the Python library. if you want to save the image to an external file format, use the "save" method. to save to a string, use a StringIO or cStringIO stream as the target: out = cStringIO.StringIO() im.save(out, "jpeg") data = out.getvalue() From mclange at ucdavis.edu Mon Dec 5 23:17:42 2005 From: mclange at ucdavis.edu (Matthew Lange) Date: Mon, 5 Dec 2005 14:17:42 -0800 Subject: [Image-SIG] mismatch version Message-ID: <003301c5f9e9$b68a72b0$6400a8c0@SpeedFreak> Sent from wrong account before (apologies): Received this warning about mismatch version when trying to install PIL., wondering how to fix: -bash-2.05b$ /usr/local/python2.3/bin/python selftest.py PIL/Image.py:52: RuntimeWarning: Python C API version mismatch for module _imaging: This Python has API version 1012, module _imaging has version 1011. Thanks in advance, Matthew -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20051205/fd34ad19/attachment.htm From s_david_rose at hotmail.com Mon Dec 19 17:00:14 2005 From: s_david_rose at hotmail.com (S. D. Rose) Date: Mon, 19 Dec 2005 11:00:14 -0500 Subject: [Image-SIG] Place image into MySQL db. References: Message-ID: I think I should have been a little more specific. I have a process that takes a bunch of photos and stores them 'as taken' in .JPG format. I read them from the database like this: >>> cur.execute("select * from photosTMP") >>> result = cur.fetch() >>> for each in result: recno = each[0] img[counter] = each[1].tostring() counter += 1 .. do something .. >>> for photoNum in range(0,4): cur.execute("insert into photo(check_transactionKEY, photo) values(%s, %s)", (photoNum, img[photoNum] ) Now, I want to do something to them. Resize them to 320x240, make them grayscale. Possibly a rotation. After doing what I want to do, I want to insert them into another table for permanent storage. However, at this point, they seem to have lost their .JPG formatting. That's what I wrote about before. I _don't_ want to save them to a file. Rather I want to insert the image into the database. If I insert the img object, isn't that the PIL object, rather than just the image? I'd really like to be able to put the image-only in. I guess I could img.save(file, 'jpg') and then read the file and then insert it, but that seems to be a particularly in-elegant way to do it. If someone could assist, I'd really appreciate it. -Dave "Fredrik Lundh" wrote in message news:do35pg$38q$1 at sea.gmane.org... > "S. D. Rose" wrote: > >> I have a question about PIL. >> >> I get a 50k photo from a MySQL table, convert it to grey-scale, do some >> rotations, etc. Then I want to put it back. It seems that after I do >> the >> greyscale, it converts from 'JPEG' to 'RAW'. Can anyone tell me how I >> convert the image back to 'JPEG' and then insert the photo into the MySQL >> database? I've tried .tostring('jpeg') but that told me it couldn't load >> the >> jpeg encoder. > > "tostring" converts the pixel contents to a string buffer, much like > array.tostring > and similar methods in the Python library. > > if you want to save the image to an external file format, use the "save" > method. > to save to a string, use a StringIO or cStringIO stream as the target: > > out = cStringIO.StringIO() > im.save(out, "jpeg") > data = out.getvalue() > > > > > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > From fredrik at pythonware.com Sun Dec 18 17:09:26 2005 From: fredrik at pythonware.com (Fredrik Lundh) Date: Sun, 18 Dec 2005 17:09:26 +0100 Subject: [Image-SIG] Place image into MySQL db. References: Message-ID: "S. D. Rose" wrote: > I think I should have been a little more specific. I have a process that > takes a bunch of photos and stores them 'as taken' in .JPG format. /.../ > I guess I could img.save(file, 'jpg') and then read the file and then insert > it, but that seems to be a particularly in-elegant way to do it. you don't have to be more specific, you just have to read the replies you get: to save to a string, use a StringIO or cStringIO stream as the target: out = cStringIO.StringIO() im.save(out, "jpeg") data = out.getvalue() From s_david_rose at hotmail.com Mon Dec 19 17:25:34 2005 From: s_david_rose at hotmail.com (S. D. Rose) Date: Mon, 19 Dec 2005 11:25:34 -0500 Subject: [Image-SIG] Place image into MySQL db. References: Message-ID: Sorry! Thank you for your help!!!! -Dave "Fredrik Lundh" wrote in message news:do41jo$4n1$1 at sea.gmane.org... > "S. D. Rose" wrote: > >> I think I should have been a little more specific. I have a process that >> takes a bunch of photos and stores them 'as taken' in .JPG format. /.../ >> I guess I could img.save(file, 'jpg') and then read the file and then >> insert >> it, but that seems to be a particularly in-elegant way to do it. > > you don't have to be more specific, you just have to read the > replies you get: > > to save to a string, use a StringIO or cStringIO stream as the target: > > out = cStringIO.StringIO() > im.save(out, "jpeg") > data = out.getvalue() > > > > > > _______________________________________________ > Image-SIG maillist - Image-SIG at python.org > http://mail.python.org/mailman/listinfo/image-sig > From michele.petrazzo at unipex.it Mon Dec 19 09:34:40 2005 From: michele.petrazzo at unipex.it (Michele Petrazzo) Date: Mon, 19 Dec 2005 09:34:40 +0100 Subject: [Image-SIG] save a tif image "sequence" In-Reply-To: References: <200512121727.19920.haase@msg.ucsf.edu> <43A3D17B.4020408@unipex.it> Message-ID: <43A670A0.40309@unipex.it> Sebastian Haase wrote: > Michele, Thanks for your reply. Are you saying you are developping a > "competing project" to PIL !? No, of course! I'm not have time and I don't able to do it! Like I say at freeimagepy site, I create it for work with tiff G3/G4 images into my hylafax python client. > Whatever it is, if it's freely available I would like to take a > look... Yes, you can find it at freeimagepy.sf.net! > PIL *should* support multipage-tifs ! > This is another talk :) > Thanks, Sebastian > > Michele From fredrik at pythonware.com Mon Dec 19 11:18:21 2005 From: fredrik at pythonware.com (Fredrik Lundh) Date: Mon, 19 Dec 2005 11:18:21 +0100 Subject: [Image-SIG] save a tif image "sequence" References: <200512121727.19920.haase@msg.ucsf.edu><43A3D17B.4020408@unipex.it> Message-ID: Sebastian Haase wrote: > PIL *should* support multipage-tifs ! contributions are welcome, as usual. From jmatejek at suse.cz Wed Dec 21 16:48:45 2005 From: jmatejek at suse.cz (Jan Matejek) Date: Wed, 21 Dec 2005 16:48:45 +0100 Subject: [Image-SIG] buggy use of realloc() Message-ID: <43A9795D.70206@suse.cz> Hi, in the one place where you use realloc() in PIL, you ignore its return value. That could lead to problems if realloc() decided to move the allocated block away. Although that's not a problem in your case, since the block can only be shrunk, new gcc still complains about it, so it would be a good idea to fix it. Attached is a (trivial) patch against 20051211 snapshot. regards jan matejek -------------- next part -------------- A non-text attachment was scrubbed... Name: Imaging-realloc.patch Type: text/x-patch Size: 378 bytes Desc: not available Url : http://mail.python.org/pipermail/image-sig/attachments/20051221/e43b4eb6/Imaging-realloc.bin From fredrik at pythonware.com Wed Dec 21 20:22:31 2005 From: fredrik at pythonware.com (Fredrik Lundh) Date: Wed, 21 Dec 2005 20:22:31 +0100 Subject: [Image-SIG] mismatch version References: <003301c5f9e9$b68a72b0$6400a8c0@SpeedFreak> Message-ID: Matthew Lange wrote: > Received this warning about mismatch version when trying to install PIL., > wondering how to fix: > > -bash-2.05b$ /usr/local/python2.3/bin/python selftest.py > > PIL/Image.py:52: RuntimeWarning: Python C API version mismatch for module > _imaging: This Python has API version 1012, module _imaging has version > 1011. PIL's picking up a version of _imaging built for an older version of Python. try: $ python >>> import _imaging >>> _imaging.__file__ to see what file it uses. From andy47 at halfcooked.com Sun Dec 25 09:57:31 2005 From: andy47 at halfcooked.com (Andy Todd) Date: Sun, 25 Dec 2005 19:57:31 +1100 Subject: [Image-SIG] Problems with JPEG support with PIL 1.1.5 on Mac OSX 10.4 Message-ID: <43AE5EFB.90002@halfcooked.com> Hi, I've installed libjpeg using Fink on my Mac (Tiger, 10.4.3) and when I install PIL from source it tells me that jpeg support is OK; """ -------------------------------------------------------------------- --- TKINTER support ok --- JPEG support ok --- ZLIB (PNG/ZIP) support ok *** FREETYPE2 support not available -------------------------------------------------------------------- """ But when I run selftest.py I get this error message; """ ***************************************************************** Failure in example: _info(Image.open("Images/lena.jpg")) from line #24 of selftest.testimage Exception raised: Traceback (most recent call last): File "./doctest.py", line 499, in _run_examples_inner exec compile(source, "", "single") in globs File "", line 1, in ? File "./selftest.py", line 21, in _info im.load() File "PIL/ImageFile.py", line 180, in load d = Image._getdecoder(self.mode, d, a, self.decoderconfig) File "PIL/Image.py", line 328, in _getdecoder raise IOError("decoder %s not available" % decoder_name) IOError: decoder jpeg not available 1 items had failures: 1 of 55 in selftest.testimage ***Test Failed*** 1 failures. *** 1 tests of 55 failed. """ All I've done to install libjpeg is from an admin account type; sudo apt-get install libjpeg Which has also instaleld the libjpeg-bin and libjpeg-shlibs. Can anyone help? Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ From venkatraman.kk at telesisglobal.com Tue Dec 27 07:13:36 2005 From: venkatraman.kk at telesisglobal.com (venkatraman.kk@telesisglobal.com) Date: Tue, 27 Dec 2005 11:43:36 +0530 (IST) Subject: [Image-SIG] Support information needed urgent!!! Message-ID: <34716.192.168.168.6.1135664016.squirrel@www.telesisglobal.com> Dear Support, We like to know whether AIX 5.2 supports Python2.3. If not what are all the related patches to be applied. Thanks and Regards Venkatraman K.K ************************ Disclaimer ************************ This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee. This e-mail may contain viruses.TELESIS has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. TELESIS reserves the right to monitor and review the content of all messages sent to or from this e-mail address. ************************ End of Disclaimer******************* Visit us at www.telesisglobal.com From fredrik at pythonware.com Wed Dec 28 09:47:36 2005 From: fredrik at pythonware.com (Fredrik Lundh) Date: Wed, 28 Dec 2005 09:47:36 +0100 Subject: [Image-SIG] Support information needed urgent!!! References: <34716.192.168.168.6.1135664016.squirrel@www.telesisglobal.com> Message-ID: venkatraman.kk at telesisglobal.com wrote: > Dear Support, > > We like to know whether AIX 5.2 supports > Python2.3. If not what are all the related patches > to be applied. this is the python image-sig mailing list, not a generic support forum. if your question is related to python itself, comp.lang.python may be a more appropriate forum: http://www.python.org/community/lists.html From goodger at python.org Wed Dec 28 16:12:19 2005 From: goodger at python.org (David Goodger) Date: Wed, 28 Dec 2005 10:12:19 -0500 Subject: [Image-SIG] PyCon TX 2006: Early-bird registration ends Dec. 31! Message-ID: <43B2AB53.1000409@python.org> Early bird registration for PyCon TX 2006 ends on December 31st, so there are only a few days LEFT. To register, please visit: http://us.pycon.org/TX2006/Registration You can still register after Dec. 31st, but the cost will go up by US$65 (US$25 for students). This year PyCon will feature a day of tutorials before the three days of regular presentations. Course outlines for all the tutorials have been posted; see http://wiki.python.org/moin/PyCon2006/Tutorials All of the PyCon tutorials are still open for new registrations, but space is limited, and we suspect they'll all be filled up by the time early-bird registration closes. Don't forget to book your hotel room, too. PyCon TX 2006 is being held at a Dallas/Addison hotel, and we have negotiated a special low rate: http://us.pycon.org/Addison/Hotels We hope to see you in Texas! -- David Goodger (on behalf of A.M. Kuchling, Chair, PyCon 2006) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 249 bytes Desc: OpenPGP digital signature Url : http://mail.python.org/pipermail/image-sig/attachments/20051228/5fef451d/signature.pgp From lubyliao at gmail.com Thu Dec 29 04:54:42 2005 From: lubyliao at gmail.com (luby liao) Date: Thu, 29 Dec 2005 03:54:42 -0000 Subject: [Image-SIG] jpeg decoder with PIL 1.1.5 Message-ID: I run into the same problem as Mathieu when trying to install PIL on a Celeron D 64 machine. I noticed that there were two set of libjpeg.so.62.0.0 in the libjpeg rpm: /usr/lib/libjpeg.so.62.0.0 /usr/lib64/libjpeg.so.62.0.0 They have different byte counts: [liao at fc42541 halloween]$ ls -l /usr/lib64/libjpeg.so.62.0.0 /usr/lib/libjpeg.so.62.0.0 -rwxr-xr-x 1 root root 141544 Mar 2 2005 /usr/lib64/libjpeg.so.62.0.0 -rwxr-xr-x 1 root root 124696 Mar 2 2005 /usr/lib/libjpeg.so.62.0.0 I suspected that the build process used the wrong file from /usr/lib/libjpeg.so.62.0.0, so I removed it. This solved my problem. I hope this is helpful for some people with similar problem. cheers, Luby Liao -- Hi there, I am trying to install PIL 1.1.5 with jpeg decoder. I installed from RPM and also from sources the libjpeg-6b into /usr/local/lib. I change the ROOT_JPEG in setup.py to point to that location. When I install PIL 1.1.5, I get a message that the JPEG support is OK. But when I test it, I get a message of decoder error. Someone could help me? I tried by myself in python and received the same IOError message. Thanks, Mathieu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/image-sig/attachments/20051229/f64d3922/attachment-0001.htm