Re: [Image-SIG] PIL crashes windows 7 (blue screen)

2013-09-18 Thread Chris Barker
On Mon, Sep 16, 2013 at 6:01 AM, Charles Cazabon charlesc-pyimage...@pyropus.ca wrote: Grabbing seems to work great for a while, but after some time, the process comes to a crash. Nothing a user-space program does should be able to crash the OS kernel. quite true, but this is Windows

Re: [Image-SIG] Unsubscribe

2013-03-19 Thread Chris Barker - NOAA Federal
Is there any way to set these parameters using environment variables? Pillow is being installed as a dependency for my library so it would be easier if users could set up something beforehand... Also, it's a pretty common practice for setup.py files to look in standard locations for includes

[Image-SIG] Initializing a 'P' image

2012-06-19 Thread Chris Barker
HI folks, I'm creating, then drawing to, a P paletted image. I like how ImageDraw will let you set the colors as you drawm and it will automaticaly get added to teh palette. However, I can't see how to initialize the image with a given background (fill) color: In [35]: Image.new('P', (10,10),

Re: [Image-SIG] PIL and converting an image to and from a string value

2012-04-27 Thread Chris Barker
On Fri, Apr 27, 2012 at 6:21 AM, Charles Cazabon charlesc-pyimage...@pyropus.ca wrote: I am stuck however, in figuring out how to take the string data and converting it back to an image that I can put into the canvas widget. See the PIL handbook, where it says If you have an entire image file

Re: [Image-SIG] Macinthos PIC files

2012-04-10 Thread Chris Barker
On Tue, Apr 10, 2012 at 1:48 PM, Elmar Werling el...@net4werling.de wrote: Am 10.04.2012 21:46, schrieb Chris Barker: On Tue, Apr 10, 2012 at 12:11 PM, elmar werlingel...@net4werling.de  wrote: I have pictures in Macinthos PIC/PICT format (HDR image (image/x-hdr),see appendix. Can anyone

Re: [Image-SIG] Help for to do a script

2012-03-19 Thread Chris Barker
1) please don't multi-post like this -- this is really a tutor question. i.e. your problem is very basic python On Fri, Mar 16, 2012 at 11:52 AM, Boris Vladimir Comi gle...@comunidad.unam.mx wrote: I detect a class of atmospheric phenomena known as Mesoscale Convective Systems (MCS). To

Re: [Image-SIG] fromarray rotates image

2012-01-31 Thread Chris Barker
putting the image-sig list back on the thread... On Tue, Jan 31, 2012 at 8:38 AM, Cousoulis, Paul pcousou...@meso-scale.com wrote: I'm sorry but I still think there is a bug. I still don't think so: explanation below. By the way, there is another problem with your example -- I get an

Re: [Image-SIG] Help installing PIL

2011-09-17 Thread Chris Barker
On 9/16/11 3:23 PM, Bruce Johnson wrote: On Sep 14, 2011, at 7:45 PM, Isaac Feldman wrote: I am trying to install PIL 1.7.7 on Mac OS X 10.6 running python 2.7.2 No, it's because you don't have gcc-4.0 or at least don't have it on your $PATH. You need to have Apple's Developer Tools

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

2011-01-10 Thread Chris Barker
On 1/7/2011 8:26 PM, Narendra Sisodiya wrote: If you need more math, numpy can help. Somethign like: a = np.asarray(PIL_image) background_color = 0 rows, cols = np.where(a background_color) # background color a uint32 BB = (rows.min(), rows.max(), cols.min(), cols.max()) I

Re: [Image-SIG] Installing libjpeg

2010-05-14 Thread Chris Barker
Mark Twenhafel wrote: Try adding print Image.core.__file__ to your script and make sure that the output is what you expect. what was the result of that? At this point, my working hypothesis is that I did not install libjpeg correctly. I'm working on OS X Tiger. What I did was download

Re: [Image-SIG] Mac support for PIL

2010-05-07 Thread Chris Barker
Fredrik Lundh wrote: Do you have the necessary support libraries on your machine? (see the README file). There are prebuilt versions out there too; maybe some Mac hackers can chime in and point you to the latest and greatest. I'd ask on the pyhthonmac SIG list. Maybe someone there has or

Re: [Image-SIG] Image to matrix

2007-06-05 Thread Chris . Barker
Alex Torquato S. Carneiro wrote: I'm doing a project in Python. It's a capture and process a image, I'm using PIL for images and scipy (together numpy) I'm needing to convert a image in a matrix type, can anyone help me? The latest version of PIL supports this directly, you can do: M =

Re: [Image-SIG] doubles?

2006-08-30 Thread Chris Barker
Ghalib Suleiman wrote: I want to convert my image to doubles, such that each entry in the R,G,B tuple is a double lying in the range [0,1] (this will be then passed onto NumPy for some arithmetic). why not pass the data to numpy, then convert -- that will be a lot easier. -Chris --

Re: [Image-SIG] Auto level with PIL?

2005-09-07 Thread Chris Barker
Thanks Stefano, this make sit much more clear what's going on. I'll give this code a try. -chris -- Christopher Barker, Ph.D. Oceanographer NOAA/ORR/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA

Re: [Image-SIG] Something other than .show()

2005-07-02 Thread Chris Barker
Joseph Quigley wrote: What else can I use besides .show() to display the image? PIL can be used with any number of the various GUI toolkits available for Python. Here's some info about using it with wxPython: http://wiki.wxpython.org/index.cgi/WorkingWithImages It would be pretty quick to

Re: [Image-SIG] GUI with Transparency

2005-07-02 Thread Chris Barker
Christian M. Jensen wrote: Does anyone know of a GUI toolkit that supports alpha blending using PNGs? What is it you want to do with them? wxPython can load and display PNGs with alpha, but there is no way to create them with wxPython, and I don't know if you can put them on top of each