Re: [Image-SIG] bug in version 1.1.7

2011-01-07 Thread Fredrik Lundh
Yep, it's a known bug in 1.1.7. Trivial patch here: http://hg.effbot.org/pil-2009-raclette/changeset/355 /F 2010/12/26 Kevin Paulus kevin.pau...@skynet.be: Hello All and Merry Christmas, I've found a bug and verified it with several of my Slackware fanatics: it seems that Pil 1.1.7

Re: [Image-SIG] [python-imaging-sane] get_devices and threading

2011-01-07 Thread Fredrik Lundh
Well, I'd say scanning falls under the image stuff umbrella, and the Sane bindings are shipped with the PIL source code... I don't know much about them, though, but I suspect this is a Python GIL issue. /F 2010/12/28 Edward Cannon edw...@unicornschool.org: wrong mailing list, this is for PIL

Re: [Image-SIG] [PATCH; python-imaging-sane] Py_*_ALLOW_THREADS for sane_get_devices and sane_open calls

2011-01-07 Thread Fredrik Lundh
Added to trunk. Thanks! /F 2010/12/28 Sandro Mani manisan...@gmail.com: Hi, following patch also adds Py_*_ALLOW_THREADS macros around the sane_get_devices and sane_open calls which can take a long time especially if network-scanners are accessed. --- Imaging-1.1.7.orig/Sane/_sane.c    

Re: [Image-SIG] PIL

2011-01-07 Thread Fredrik Lundh
2010/12/1 Rajajothini Sureshkumar rajajothini.sureshku...@cae.com: Hello, I would like to down load pill version 1.1.7 for Python2.6 . But I have Python 2.7 on my pc. I wonder this is not a problem If you're using PIL on Windows, you need the version that matches your Python installation.

[Image-SIG] PIL for python 2.7?

2011-01-07 Thread Michael Fahy
Will there be a version of PIL for Python 2.7? ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

Re: [Image-SIG] PIL for python 2.7?

2011-01-07 Thread Fredrik Lundh
2011/1/2 Michael Fahy f...@chapman.edu: Will there be a version of PIL for Python 2.7? PIL 1.1.7 works well with 2.7, out of the box. Binaries for Windows has been available under the additional downloads link on http://pythonware.com/products/pil/ for some time, and I just added the missing

Re: [Image-SIG] Convert to Black and White to an image

2011-01-07 Thread Fredrik Lundh
2011/1/7 Narendra Sisodiya naren...@narendrasisodiya.com: Can somebody give an easy way to convert a image into black and white using a given threshold.. Currently I am doing like this     image=ImageOps.grayscale(image)     for i in range(0,width):         for j in range(0,height):       

Re: [Image-SIG] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Fri, Jan 7, 2011 at 10:51 PM, Fredrik Lundh fred...@pythonware.comwrote: 2011/1/7 Narendra Sisodiya naren...@narendrasisodiya.com: Can somebody give an easy way to convert a image into black and white using a given threshold.. Currently I am doing like this

[Image-SIG] Locate The Center of WhiteDot from a Image

2011-01-07 Thread Narendra Sisodiya
Dear All, the given image has only two level. Pixel are either black or white. See this image - http://www.flickr.com/photos/nsisodiya/5333747510/ Now, I want to locate the center of whitedot. This can be done by locating the bounding box of white dot. I have used following algorithm

[Image-SIG] IOError: decoder zip not available

2011-01-07 Thread Johnson, Adam
Hello! I am trying to run an image processing script on a new server under CentOS 5.4. I have compiled and installed PIL 1.1.7 to run with Python 2.7.1. The compile went fine. All libraries (except TKInter) were found. All 57 tests were passed by the test script. When I try to run my script,

Re: [Image-SIG] IOError: decoder zip not available

2011-01-07 Thread Fredrik Lundh
The setup output looks fine, so my guess is that your script isn't picking up the same build as the one you get when you run the test script. Running the following command in your PIL build directory and your script directory will tell you what files Python are using: python -c import _imaging;

Re: [Image-SIG] Locate The Center of WhiteDot from a Image

2011-01-07 Thread Garrett Davis
Narendra Sisodiya wrote: Now, I want to locate the center of whitedot. I want to get center based on density of whitepixel. basically center where white pixel density is very high. Also, I am applying this algorithm on every frame taken from camera at 2fps. So I want a high speed

Re: [Image-SIG] IOError: decoder zip not available

2011-01-07 Thread Adam M. Johnson
Thank you for the troubleshooting technique! I am still getting oriented with Python. Sadly, this did not reveal anything telling. I ran this command as root and as the user who will be running it. I ran from the Imaging build directory, from the directory in which the script is located and

Re: [Image-SIG] Locate The Center of WhiteDot from a Image

2011-01-07 Thread Chris Mitchell
use numpy. This is taken from a data analysis program I wrote for analyzing single molecule fluorescent events. So should be similar to what you want, a white spot of a given intensity surrounded by noise. array being your image stored as a numpy array, threshhold is your value to be greater

[Image-SIG] ANN: PIL 1.2 pre-alpha (January 8, 2011)

2011-01-07 Thread Fredrik Lundh
A pre-alpha snapshot of the upcoming PIL 1.2 release is now available from: http://hg.effbot.org/pil-2009-raclette/downloads/PIL-1.2a0-20110108.tar.gz or via Mercurial, from https://bitbucket.org/effbot/pil-2009-raclette I've decided to abandon the planned 1.1.8 release, including the rough

Re: [Image-SIG] IOError: decoder zip not available

2011-01-07 Thread Fredrik Lundh
Oh, I just noticed that your mail included the SETUP SUMMARY but not the selftest summary. Did you install the missing libraries after an initial failed build? It could be that distutils didn't rebuild the necessary files for you... For a quick sanity check, in your build directory, do: $ ls

Re: [Image-SIG] IOError: decoder zip not available

2011-01-07 Thread Adam M. Johnson
Ah- I think we are getting somewhere... The ZipEncode and ZipDecode files were not in the build branch at all. I rmvd the build directory and rebuilt again according to your instructions. I got the all-is-well summary but still no ZipEncode/ZipDecode files created in the build directory. In