From brian at fluggo.com Thu Nov 1 14:48:30 2012 From: brian at fluggo.com (Brian Crowell) Date: Thu, 1 Nov 2012 08:48:30 -0500 Subject: [Image-SIG] Python 3 port -- first pass finished In-Reply-To: References: Message-ID: On Thu, Oct 25, 2012 at 10:31 AM, Brian Crowell wrote: > The test runner *looks* like it includes support for this module: > > http://pypi.python.org/pypi/coverage I got it working this morning. The results are quite awesome, but could use some tweaking. To get it working, I had to: * Remove the -S switch from the command line (added in run.py) so that site packages would load on Debian * Store the coverage object as a global in tester.py * Have coverage load the previous results Then just: import coverage cov = coverage.coverage() cov.load() cov.html_report() --Brian From aclark at aclark.net Fri Nov 2 00:08:56 2012 From: aclark at aclark.net (Alex Clark) Date: Thu, 1 Nov 2012 19:08:56 -0400 Subject: [Image-SIG] Pillow 1.7.8 Message-ID: Is out: - http://pypi.python.org/pypi/Pillow/1.7.8 If anyone has any thoughts on: - https://github.com/python-imaging/Pillow/issues/17 Please add them to the ticket. I'll be taking a look at the entire test harness ASAP. -- Alex Clark ? https://www.gittip.com/aclark4life/ From charlie.clark at clark-consulting.eu Mon Nov 5 19:10:01 2012 From: charlie.clark at clark-consulting.eu (Charlie Clark) Date: Mon, 05 Nov 2012 19:10:01 +0100 Subject: [Image-SIG] Mailing list problems Message-ID: Is is just me or do we have occasional bottlenecks where e-mails take days to come through? Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a D?sseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 From charlie.clark at clark-consulting.eu Wed Nov 7 21:31:45 2012 From: charlie.clark at clark-consulting.eu (Charlie Clark) Date: Wed, 07 Nov 2012 21:31:45 +0100 Subject: [Image-SIG] Mailing list problems In-Reply-To: <5098A691.4070502@g.nevcal.com> References: <5098A691.4070502@g.nevcal.com> Message-ID: Am 06.11.2012, 06:56 Uhr, schrieb Glenn Linderman : > It isn't just you. I just got a recent batch of email from Image-SIG, > that were quite backlogged. We should probably look at this and see if we can improve it. Some of the last batch had been sitting around for over a month and that is not very nice for people just starting out with images and Python. Is this bottleneck with new members or simply approving e-mails? Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a D?sseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 From glez_b at comunidad.unam.mx Thu Nov 15 10:20:50 2012 From: glez_b at comunidad.unam.mx (Boris Vladimir Comi) Date: Thu, 15 Nov 2012 09:20:50 +0000 Subject: [Image-SIG] Plot multiple lines using python / basemap Message-ID: <9D6FC4172EA6B64B9044B9B8196DBB250DF7AB63@BL2PRD0710MB373.namprd07.prod.outlook.com> Hi all: I have begun to learn about python / matplolib / basemap and really need some help. My data is in an Excel workbook with the following structure: Evento Fecha Latitud Longitud Hora (UTC) 1 02/mayo 19,7 -95,2 0045 19,3 -95.3 0115 19,8 -95,6 0145 19,9 -96,6 0215 2 03/mayo 20,2 -99,6 0815 21,5 -99,8 0845 22,5 -99,9 0915 23,5 -100,0 0945 3 15/mayo 21,3 -118,9 2215 21,5 -118,7 2245 22,8 -120,3 2315 . . . . . . . . . . . . . . . How to open excel file in python? I would like to plot multiple line joining the positions of each of the events, it is possible to do this? Have any idea how to do it? The idea is to plot the trajectories on a particular region, for my case is Mexico. From jhinely at hotmail.com Fri Nov 2 18:36:29 2012 From: jhinely at hotmail.com (John Hinely) Date: Fri, 02 Nov 2012 17:36:29 -0000 Subject: [Image-SIG] problem installing pillow on windows7 Message-ID: My long term goal is to run mezzanine using virtualenv on a windows7 box. I'm able to get mezzanine up an running but I receive a "decoder jpeg not available" error when I try to add images. It appears that libjpeg did not get installed. I used "pip install mezzanine" which installed pillow as a dependancy. Do I need to manually install libjpeg first? How would I go about doing that on windows7? Any assistance would be very much appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michel.sauvard at sfr.fr Sat Nov 3 19:32:40 2012 From: michel.sauvard at sfr.fr (Michel Sauvard) Date: Sat, 03 Nov 2012 18:32:40 -0000 Subject: [Image-SIG] Python Imaging Library 1.1.7 for Python 2.7 (Windows only) depends on VS2010DBG Message-ID: <5095618F.6010004@sfr.fr> Hi. In case you do not know yat. _imagingft.pyc, necessary for ImageFont, has a dependency on the visual C++ debug runtime. A part of it must not have been compiled with the "release" mode. This prevent anybody without VC2008 to load fonts. Best regards From abha.n.agrawal at gmail.com Tue Nov 6 20:59:04 2012 From: abha.n.agrawal at gmail.com (Abha Agrawal) Date: Tue, 06 Nov 2012 19:59:04 -0000 Subject: [Image-SIG] NameError: name 'RGB' is not defined Message-ID: When I run the follwing code: from PIL import Image Image.new(RGB, (600, 600), (250, 250, 400)) it returns NameError: name 'RGB' is not defined Please advise. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chandutadepalli at gmail.com Thu Nov 8 06:19:13 2012 From: chandutadepalli at gmail.com (tadepalli venkata chandra shekhar) Date: Thu, 08 Nov 2012 05:19:13 -0000 Subject: [Image-SIG] Problem calculating the mean after application of log transform Message-ID: Respected sir/ madam I have recently started coding for my PG project in python imaging library. I encountered a problem of calculating mean of a gray scale image after taking the log transform on the image. I am putting the code below. Import Image import ImageOps from numpy import * im = Image.open('File name') im_gray = ImageOps.grayscale(imj) im_gray_mean = meanj(im_gray) Now the value in im_gray_mean is showing to be -inf. I want this to be some valid numeric data. Hope to hear from you at the earliest. Yours sincerely T.V.Chandra shekar -------------- next part -------------- An HTML attachment was scrubbed... URL: From terrafergus at gmail.com Sun Nov 11 05:01:45 2012 From: terrafergus at gmail.com (Chad Ferguson) Date: Sun, 11 Nov 2012 04:01:45 -0000 Subject: [Image-SIG] PIL image size after rotate Message-ID: <509F230A.8090506@gmail.com> Listers, I have a very simple script that rotates images using PIL. After running, the output images are about 1/3 the file size of the input image. The file attributes indicate they have increased in resolution from 72 to 96 ppi but have the same radiometric depth. Does the PIL rotate method apply a hidden resampling? Why are the output images so much smaller? from PIL import Image import glob, os indir = r'C:\Users\Me\Pictures\export' for infile in glob.glob(indir + '\\' + "*.jpg"): print infile file, ext = os.path.splitext(infile) im = Image.open(infile) im2 = im.rotate(270) im2.save(file +"_rotate.jpg", "JPEG") # os.remove(infile) -------------- next part -------------- A non-text attachment was scrubbed... Name: terrafergus.vcf Type: text/x-vcard Size: 51 bytes Desc: not available URL: From jasonzz at earthlink.net Wed Nov 14 19:03:14 2012 From: jasonzz at earthlink.net (jasonzz at earthlink.net) Date: Wed, 14 Nov 2012 18:03:14 -0000 Subject: [Image-SIG] using PIL's split command with color jpg file .. help for color jpg file Message-ID: <714690.1352916183811.JavaMail.root@mswamui-valley.atl.sa.earthlink.net> I'm using python 2.7 with PIL 1.1.7. I figure out how to work with black and white .jpg files. I ended up writing a bunch of programs to do some very interesting/cool image process effects as to learn more about image process. I own a small number of books on the topic of image process and have done some imagine programming in PASCAL and C in the past too. I'm using PIL software to read in the .jpg files & simple functions and then writing my own image processing functions/programs as learning process for developing my skills for work. I have used some of PIL's image process routines provided as well. I'm now wanting to be able to do the same thing with color jpg files. But I'm running into problems using the split function. The program quits on the command line having to do with split function and the error is about no bands defined. Can some body please provided a simple working program that show uses the split function as to access the 3 colors of a .jpg file. I have looked at the PIL hand book but the information appears to be incomplete at this time for using split function. I get much mileage out of studying a good sample but simple program that shows the interaction of the functions required to do a given task and/or process. I notice the PIL web site appears to provide NO sample programs to study and play with at this time. I'll be game to provide some of the programs that I came up working with BW .jpg files. Thanks Jason From anne.dicky at labri.fr Wed Nov 14 21:23:33 2012 From: anne.dicky at labri.fr (Anne Dicky) Date: Wed, 14 Nov 2012 20:23:33 -0000 Subject: [Image-SIG] PIL 1.1.7 for Python 2.7: ImageShow.py Message-ID: <50A3FC26.9090807@labri.fr> Hello, On Windows 7 (with Python 2.7 32 bits), Image.show() doesn't work (the temporary file is deleted before Viewer.exe can load it). Here is a fix: line 99 has been changed into return "start /wait %s && sleep 20 && del /f %s" % (file, file) (WindowsViewer is similar to MacViewer) Best regards Anne Dicky -------------- next part -------------- A non-text attachment was scrubbed... Name: ImageShow.py Type: text/x-python Size: 4466 bytes Desc: not available URL: From d at davea.name Thu Nov 15 11:29:46 2012 From: d at davea.name (Dave Angel) Date: Thu, 15 Nov 2012 10:29:46 -0000 Subject: [Image-SIG] [Tutor] Plot multiple lines using python / basemap In-Reply-To: <9D6FC4172EA6B64B9044B9B8196DBB250DF7AB63@BL2PRD0710MB373.namprd07.prod.outlook.com> References: <9D6FC4172EA6B64B9044B9B8196DBB250DF7AB63@BL2PRD0710MB373.namprd07.prod.outlook.com> Message-ID: <50A4C3FF.1020701@davea.name> On 11/15/2012 04:20 AM, Boris Vladimir Comi wrote: > > Hi all: > > I have begun to learn about python / matplolib / basemap and really need some help. > > My data is in an Excel workbook with the following structure: > > Evento Fecha Latitud Longitud Hora (UTC) > 1 02/mayo 19,7 -95,2 0045 > 19,3 -95.3 0115 > 19,8 -95,6 0145 > 19,9 -96,6 0215 > > > 2 03/mayo 20,2 -99,6 0815 > 21,5 -99,8 0845 > 22,5 -99,9 0915 > 23,5 -100,0 0945 > > 3 15/mayo 21,3 -118,9 2215 > 21,5 -118,7 2245 > 22,8 -120,3 2315 > > . . . . . > . . . . . > . . . . . > > > > > > > How to open excel file in python? >From Excel, save the file as a csv file, rather than a proprietary format. Then, within Python program, use the csv module, http://docs.python.org/2/library/csv.html The essential parts: import csv def getdata(filename): with open(filename, "rb") as infile: csvreader = csv.reader(infile, delimiter ="\t", quotechar='"') for row in csvreader: ---- process row ---- where row comes back as a list of items. You may have to play with the delimiter and quotechar, as I don't use Excel itself, to know what it defaults to. But a csv file is a text file, so it should be pretty obvious if you just look at the file with a text editor or viewer, what the separator and quote characters are. The quote character generally only matters if some field has an embedded separator or newline in it. > > I would like to plot multiple line joining the positions of each of the events, it is possible to do this? Have any idea how to do it? Try matplotlib: http://pypi.python.org/pypi/matplotlib/1.1.0 It depends on numpy: http://numpy.scipy.org/ > > The idea is to plot the trajectories on a particular region, for my case is Mexico. > -- DaveA From amca01 at gmail.com Sun Nov 25 21:58:26 2012 From: amca01 at gmail.com (Alasdair McAndrew) Date: Sun, 25 Nov 2012 20:58:26 -0000 Subject: [Image-SIG] Current libraries for image processing? Message-ID: I'm just starting to investigate Python for image processing, and I'm very impressed (up to now my main software has been Matlab and its alternatives: scilab, Octave etc). What I want to know is, what is the current state of the art with regard to image processing libraries? Is PIL still an active concern? Or should I concentrate on scikits-image, scipy/ndimage, mahotas...? Thanks very much, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew -------------- next part -------------- An HTML attachment was scrubbed... URL: