Fei Xu wrote:
I am installing PIL on Mac Os X. I ran the command python setup.py build
and get an error messange as below:
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort
That looks like the error you get when you have more than one version of
Python installed on your sys
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 wh
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 other
Hi all,
I need to do something like Photoshop's Auto Level to a bunch of images.
Honestly, I have only a vague idea of what it does, but I saw that
someone posted a script to do it here about 6 years ago, but I can't
seem to get that code from the list archives. It's also possible that
someone
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/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA
You might want to also take a look at wxArt2d. Sadly, however, it not
yet been wrapped for use with Python.
http://wxart2d.sourceforge.net/
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 S
Arnd Baecker wrote:
> Does the ".tostring()" part cost a lot of performance?
Well, I think you get at least two copies of the data: one to make the
string, and then another one to make the wx.image. It would be nice to
just pass a pointer to the data buffer right through to wx.Image.
Fredrik,
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
--
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 = n
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 will
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
Mark Twenhafel wrote:
Chris--I thought I had mailed this Friday, but it never appeared in image-sig,
so here goes again. I'll continue with the interleaved response-style. Thanks
for the help--for my part, I'm working through K&R,
I doubt K&R will help there -- I'd look for something about g
On 7/18/10 12:41 PM, Fredrik Lundh wrote:
PIL is a image manipulation/graphics library for Python, and it
doesn't provide any standard functions for e.g. plotting data on maps
or serving them from a web server. From your description, it sounds
like you're using some application that uses PIL, so
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())
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 installe
On Tue, Jan 31, 2012 at 8:38 AM, Cousoulis, Paul
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
all-black second image. I think you need to specify the image mode
when you create
t method to go the other.
> but I guess it needs to stay the way it is.
I do agree that it's not ideal like this, but not bad, once you expect it.
-Chris
Thanks for the help.
>
> Paul
>
> -Original Message-
> From: Chris Barker [mailto:chris.bar...@noaa.gov]
&g
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
wrote:
> I detect a class of atmospheric phenomena known as Mesoscale Convective
> Systems (MCS). To accomplish this, I have a da
On Tue, Apr 10, 2012 at 1:48 PM, Elmar Werling wrote:
> Am 10.04.2012 21:46, schrieb Chris Barker:
>
>> On Tue, Apr 10, 2012 at 12:11 PM, elmar werling
>> wrote:
>>
>>> I have pictures in Macinthos PIC/PICT format (HDR image (image/x-hdr),see
>>> appendi
On Fri, Apr 27, 2012 at 6:21 AM, Charles Cazabon
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 in a
> string, wrap it
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),
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
>> 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 inc
On Wed, Aug 21, 2013 at 7:00 AM, ha wrote:
> Is this the right place to discuss such problems?
not really -- this list os for more general image processing tools
with Pyton, mostly the PIL.
There must be an OpenCV list somewhere.
If not, I'd try the scipy list, I expect there are users on there
24 matches
Mail list logo